fix license key #3
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 | |
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 | |
working-directory: monorepo | |
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 using your secret token | |
- name: Expo Login | |
run: eas login --non-interactive --token ${{ secrets.EXPO_TOKEN }} | |
# Trigger an Expo preview build for both platforms | |
- name: Trigger Preview Build | |
run: eas build --profile preview --platform all --non-interactive |