Skip to content

Commit

Permalink
Merge pull request #1687 from Adslot/npm-ci
Browse files Browse the repository at this point in the history
ci: add --update-notifier=false for npm ci
  • Loading branch information
chaofan232 authored Oct 1, 2023
2 parents 9045d98 + 036a857 commit 261946a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
node-version: ${{matrix.node}}
- run: npm -v
- run: npm ci
- run: npm ci --update-notifier=false
- run: npm run type-check
- run: |
npm run generate-types
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
node-version: ${{matrix.node}}
- run: npm -v
- run: npm ci
- run: npm ci --update-notifier=false
- name: Run jest coverage
run: |
set -o pipefail
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
node-version: ${{matrix.node}}
- run: npm -v
- run: npm ci
- run: npm ci --update-notifier=false
- name: Run commitlint on last commit
if: github.ref != 'refs/heads/master'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/optimisation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
node-version: ${{matrix.node}}
- run: npm -v
- run: npm ci
- run: npm ci --update-notifier=false
- name: Run svgo and check for missed optimisations
run: |
npm run svgo
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"generate-types": "node ./scripts/generate-types/generateTypes.js",
"copy-types": "npm run generate-types -- -c",
"type-check": "tsc --allowSyntheticDefaultImports --noemit",
"deps": "ADBLOCK=true DISABLE_OPENCOLLECTIVE=true npm ci",
"deps": "ADBLOCK=true DISABLE_OPENCOLLECTIVE=true npm ci --update-notifier=false",
"dist:prod": "cross-env NODE_ENV=dist node ./scripts/build.js",
"dist:lib": "cross-env NODE_ENV=cjs node ./scripts/babel-build.js",
"dist:es": "cross-env NODE_ENV=esm node ./scripts/babel-build.js",
Expand All @@ -33,7 +33,7 @@
"prettier": "prettier \"{src,www,config}/**/*.{js,json,jsx,md,mdx,css}\" --write",
"svgo": "svgo --recursive --multipass --folder=src --config=svgo-config.js",
"postversion": "git push -u origin $(git rev-parse --abbrev-ref HEAD) --follow-tags && npm publish && echo '…released.'",
"preversion": "echo 'Releasing…' && ADBLOCK=true DISABLE_OPENCOLLECTIVE=true npm ci",
"preversion": "echo 'Releasing…' && ADBLOCK=true DISABLE_OPENCOLLECTIVE=true npm ci --update-notifier=false",
"release:major": "npm version major -m 'build: release major version %s'",
"release:minor": "npm version minor -m 'build: release minor version %s'",
"release:patch": "npm version patch -m 'build: release patch version %s'",
Expand Down

0 comments on commit 261946a

Please sign in to comment.