Skip to content

Commit

Permalink
fix: install functions deps during deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Mar 28, 2023
1 parent 04ad770 commit 4eb9900
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
preview: yes
prebuild-command: |
cd functions
npm ci
echo "ENVIRONMENT=stage" > .env
echo "AGS_HOST=https://wrimaps.at.utah.gov" >> .env
build-command: npm run build:stage
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
prebuild-command: |
npx grunt bump --setversion=${{ needs.release.outputs.released_version }}
cd functions
npm ci
echo "ENVIRONMENT=stage" > .env
echo "AGS_HOST=https://wrimaps.at.utah.gov" >> .env
build-command: npm run build:stage
Expand All @@ -80,6 +81,7 @@ jobs:
prebuild-command: |
npx grunt bump --setversion=${{ needs.release.outputs.released_version }}
cd functions
npm ci
echo "ENVIRONMENT=prod" > .env
echo "AGS_HOST=https://wrimaps.utah.gov" >> .env
project-id: ${{ secrets.PROJECT_ID }}
Expand Down
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@
"utahid",
"WILDADMIN",
"wrimaps"
],
"github-actions.workflows.pinned.workflows": [
".github/workflows/pull_request.yml",
".github/workflows/push.yml"
]
}

0 comments on commit 4eb9900

Please sign in to comment.