From 2aba0cf9c320ca154484069435bb5ff7074ed2ee Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Fri, 18 Oct 2024 13:55:45 -0700 Subject: [PATCH] Set NODE_ENV=production during installation This prevents installation of devDependencies in the current project. There are none at the moment for both nextstrain.org and auspice.us, but if that ever changes in the future, we would want to ignore them in this step. --- .github/workflows/preview_on_downstream_repo.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/preview_on_downstream_repo.yaml b/.github/workflows/preview_on_downstream_repo.yaml index 0cadc2055..91e4712a1 100644 --- a/.github/workflows/preview_on_downstream_repo.yaml +++ b/.github/workflows/preview_on_downstream_repo.yaml @@ -41,6 +41,8 @@ jobs: - name: Install Auspice from PRs HEAD commit shell: bash working-directory: ${{ inputs.directory }} + env: + NODE_ENV: production run: | npm config set ignore-scripts true npm ci