diff --git a/.github/actions/setup-monorepo/action.yaml b/.github/actions/setup-monorepo/action.yml similarity index 85% rename from .github/actions/setup-monorepo/action.yaml rename to .github/actions/setup-monorepo/action.yml index ebcb8544..2c0370ad 100644 --- a/.github/actions/setup-monorepo/action.yaml +++ b/.github/actions/setup-monorepo/action.yml @@ -4,22 +4,22 @@ description: Prepare and install everything for the monorepo inputs: node-version: description: Version of Node to use - default: 20.x - + default: "20.x" pnpm-version: description: Version of pnpm to use - default: 9.x - + default: "9.x" eas-version: description: Version of EAS CLI to use - default: latest - + default: "latest" expo-token: description: Expo token to authenticate with required: false + rxdb-license-key: + description: RXDB License Key + required: false runs: - using: composite + using: "composite" steps: - name: 🏗 Setup pnpm uses: pnpm/action-setup@v4 @@ -40,12 +40,14 @@ runs: - name: 📦 Install jq run: sudo apt-get install -y jq + shell: bash - name: 🏗 Add RXDB_LICENSE_KEY to package.json env: - RXDB_LICENSE_KEY: ${{ secrets.RXDB_LICENSE_KEY }} + RXDB_LICENSE_KEY: ${{ inputs.rxdb-license-key }} run: | jq --arg license "$RXDB_LICENSE_KEY" '.accessTokens["rxdb-premium"] = $license' package.json > tmp.json && mv tmp.json package.json + shell: bash - name: 📦 Install dependencies run: pnpm install diff --git a/.github/workflows/eas-preview-build.yml b/.github/workflows/eas-preview-build.yml index 13964699..d9b26463 100644 --- a/.github/workflows/eas-preview-build.yml +++ b/.github/workflows/eas-preview-build.yml @@ -27,7 +27,8 @@ jobs: uses: ./.github/actions/setup-monorepo with: expo-token: ${{ secrets.EXPO_TOKEN }} - + rxdb-license-key: ${{ secrets.RXDB_LICENSE_KEY }} + - name: 👷 Build packages run: pnpm run -w build:example