From 91bdf376adb374a863fec168d20e0889d49a17ff Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Thu, 9 Feb 2023 10:26:37 -0800 Subject: [PATCH] Use read-only npm command `npm install` doesn't treat the lock file as read-only and may fetch / install unpinned dependencies and update the lockfiles. `npm install-ci-test` is used to install and run tests in read-only mode in a CI environment. --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d250fb04ad..5fe05c0ae1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,8 +82,7 @@ jobs: uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 with: node-version: 18 - - run: npm --prefix ${{ github.workspace }}/internal/nginx/modules install - - run: npm --prefix ${{ github.workspace }}/internal/nginx/modules test + - run: npm --prefix ${{ github.workspace }}/internal/nginx/modules install-ci-test binary: name: Build Binary