Skip to content

Commit

Permalink
checks: env file and pb-typegen
Browse files Browse the repository at this point in the history
  • Loading branch information
IldenH committed Dec 23, 2024
1 parent 029ee1e commit d0fa507
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,16 @@ jobs:
- name: get deps
run: npm ci

- name: Create env file
# Create .env based on secrets and variables defined in GitHub
run: |
touch .env
echo PUBLIC_PB_HOST=${{ vars.PB_HOST }} >> .env
echo PB_ADMIN_PASSWORD=${{ secrets.PB_ADMIN_PASSWORD }} >> .env
echo PB_ADMIN_EMAIL=${{ secrets.PB_ADMIN_EMAIL }} >> .env
- name: Run pocketbase-typegen
run: npx --yes [email protected] --url $(PUBLIC_PB_HOST) --email $(PB_ADMIN_EMAIL) --password $(PB_ADMIN_PASSWORD) --out ./src/lib/pocketbase/index.d.ts

- name: Lint and check formatting
run: npm run lint

0 comments on commit d0fa507

Please sign in to comment.