fix eas update command #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Expo Preview Build | |
on: | |
push: | |
branches: | |
- v2 | |
jobs: | |
build-preview: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
# Checkout the code | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Setup Node.js environment | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
# Install pnpm globally | |
- name: Install pnpm | |
run: npm install -g pnpm | |
# Add RXDB license | |
- name: Install jq | |
run: sudo apt-get install -y jq | |
- name: Add RXDB_LICENSE_KEY to package.json | |
env: | |
RXDB_LICENSE_KEY: ${{ secrets.RXDB_LICENSE_KEY }} | |
run: | | |
jq --arg license "$RXDB_LICENSE_KEY" '.accessTokens["rxdb-premium"] = $license' package.json > tmp.json && mv tmp.json package.json | |
# Install dependencies from your monorepo | |
- name: Install dependencies | |
run: pnpm install | |
# Login to Expo | |
- name: Setup EAS | |
uses: expo/expo-github-action@v8 | |
with: | |
eas-version: latest | |
token: ${{ secrets.EXPO_TOKEN }} | |
# Trigger an Expo preview build for both platforms | |
- name: Create preview | |
uses: expo/expo-github-action/preview@v8 | |
with: | |
command: npx eas update --auto |