From 4eb9900fab8d7db00d3240317dc058fca46a5115 Mon Sep 17 00:00:00 2001 From: stdavis Date: Tue, 28 Mar 2023 13:42:19 -0600 Subject: [PATCH] fix: install functions deps during deploy --- .github/workflows/pull_request.yml | 1 + .github/workflows/push.yml | 2 ++ .vscode/settings.json | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 9fbcaa3..aa2f758 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -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 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 7c5beb6..f1d4a5d 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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 @@ -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 }} diff --git a/.vscode/settings.json b/.vscode/settings.json index b0ca58b..561b2f4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -20,5 +20,9 @@ "utahid", "WILDADMIN", "wrimaps" + ], + "github-actions.workflows.pinned.workflows": [ + ".github/workflows/pull_request.yml", + ".github/workflows/push.yml" ] }