Skip to content

Commit

Permalink
ci: install function deps before deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Oct 22, 2024
1 parent cd9007d commit 59c6d97
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ jobs:
service-account-email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
project-id: ${{ secrets.PROJECT_ID }}
preview: yes
prebuild-command: |
cd functions
npm ci
cd ..
build-command: npm run build -- --mode dev
repo-token: ${{ secrets.GITHUB_TOKEN }}
env:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
identity-provider: ${{ secrets.IDENTITY_PROVIDER }}
service-account-email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
project-id: ${{ secrets.PROJECT_ID }}
prebuild-command: |
cd functions
npm ci
cd ..
build-command: npm run build -- --mode dev
env:
VITE_DISCOVER: ${{ secrets.DISCOVER }}
Expand All @@ -50,6 +54,10 @@ jobs:
identity-provider: ${{ secrets.IDENTITY_PROVIDER }}
service-account-email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
project-id: ${{ secrets.PROJECT_ID }}
prebuild-command: |
cd functions
npm ci
cd ..
build-command: npm run build -- --mode production
service-now-instance: ${{ secrets.SN_INSTANCE }}
service-now-table: ${{ secrets.SN_TABLE }}
Expand Down

0 comments on commit 59c6d97

Please sign in to comment.