Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): pass --no-audit flag to npm #2467

Merged
merged 1 commit into from
May 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
node-version: '*'
check-latest: true
- name: Install dependencies
run: npm install --production
run: npm install --production --no-audit
- name: Get size
run: du -sk node_modules | cut -f1 > .delta.packageSize && echo "kb (Package size)" >> .delta.packageSize
- name: Run Delta
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Install core dependencies
run: npm ci
run: npm ci --no-audit
- name: Install site dependencies
run: npm run site:build:install
- name: Linting
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version: '*'
check-latest: true
- name: Install core dependencies
run: npm ci
run: npm ci --no-audit
- name: Install site dependencies
run: npm run site:build:install
- name: Generate docs
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"url": "https://github.com/netlify/cli/issues"
},
"scripts": {
"prepublishOnly": "npm ci && run-s test",
"prepublishOnly": "npm ci --no-audit && run-s test",
"start": "node ./bin/run",
"test": "run-s format test:dev",
"format": "run-s format:check-fix:*",
Expand All @@ -57,16 +57,16 @@
"test:ci": "run-s test:init:* test:ci:*",
"test:init:cli-version": "npm run start -- --version",
"test:init:cli-help": "npm run start -- --help",
"test:init:eleventy-deps": "npm ci --prefix tests/eleventy-site",
"test:init:hugo-deps": "npm ci --prefix tests/hugo-site",
"test:init:eleventy-deps": "npm ci --prefix tests/eleventy-site --no-audit",
"test:init:hugo-deps": "npm ci --prefix tests/hugo-site --no-audit",
"test:dev:ava": "ava --verbose",
"test:ci:ava": "nyc -r json ava",
"docs": "node ./site/scripts/docs.js",
"watch": "nyc --reporter=lcov ava --watch",
"prepack": "oclif-dev manifest && npm prune --prod",
"postpack": "rm -f oclif.manifest.json && npm i",
"site:build": "run-s site:build:*",
"site:build:install": "cd site && npm ci",
"site:build:install": "cd site && npm ci --no-audit",
"site:build:assets": "cd site && npm run build",
"postinstall": "node ./scripts/postinstall.js"
},
Expand Down