Skip to content

Commit

Permalink
Merge pull request #1051 from maxmind/kevin/man-confusion
Browse files Browse the repository at this point in the history
Harden npm
  • Loading branch information
kevcenteno authored Oct 23, 2023
2 parents 3033984 + 6aa55a1 commit aad8763
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

- if: steps.cache-node-modules.outputs.cache-hit != 'true'
name: Install dependencies
run: npm install
run: npm ci

- name: Get cached build
id: cached-build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

- if: steps.cache-node-modules.outputs.cache-hit != 'true'
name: Install dependencies
run: npm install
run: npm ci

- name: Get cached build
id: cached-build
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
engine-strict=true
legacy-peer-deps=true
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@
"xml2js": "^0.5.0"
},
"engines": {
"node": ">=18"
"node": ">=18",
"npm": ">=9"
},
"license": "MIT",
"lint-staged": {
Expand Down

0 comments on commit aad8763

Please sign in to comment.