Skip to content

Commit a0be2c9

Browse files
committed
Use read-only npm command (nginx#423)
`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.
1 parent 5d70af3 commit a0be2c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ jobs:
8282
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
8383
with:
8484
node-version: 18
85-
- run: npm --prefix ${{ github.workspace }}/internal/nginx/modules install
86-
- run: npm --prefix ${{ github.workspace }}/internal/nginx/modules test
85+
- run: npm --prefix ${{ github.workspace }}/internal/nginx/modules install-ci-test
8786

8887
binary:
8988
name: Build Binary

0 commit comments

Comments
 (0)