Skip to content

Commit

Permalink
fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Feb 13, 2025
1 parent e034a70 commit c6aa88b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/eas-preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c6aa88b

Please sign in to comment.