Skip to content

Commit

Permalink
feat: ignore scripts for all ci installs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Mar 23, 2022
1 parent 416aa0d commit 7fd02e2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name: Audit

on:
workflow_dispatch: null
workflow_dispatch:
schedule:
# "At 01:00 on Monday" https://crontab.guru/#0_1_*_*_1
- cron: "0 1 * * 1"
Expand All @@ -23,5 +23,5 @@ jobs:
- name: Update npm to latest
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- run: npm -v
- run: npm i --package-lock
- run: npm i --ignore-scripts --package-lock
- run: npm audit
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name: CI

on:
workflow_dispatch: null
workflow_dispatch:
pull_request:
branches:
- '*'
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Update npm to latest
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- run: npm -v
- run: npm i
- run: npm i --ignore-scripts
- run: npm run lint

test:
Expand Down Expand Up @@ -82,5 +82,5 @@ jobs:
if: ${{ !startsWith(matrix.node-version, '10.') }}
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- run: npm -v
- run: npm i
- run: npm i --ignore-scripts
- run: npm test --ignore-scripts
2 changes: 1 addition & 1 deletion .github/workflows/post-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr checkout ${{ github.event.pull_request.number }}
npm install --no-scripts
npm install --ignore-scripts
npm run template-oss-apply
git add .
git commit -am "chore: postinstall for dependabot template-oss PR"
Expand Down
2 changes: 1 addition & 1 deletion lib/content/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
steps:
{{> setupGit}}
{{> setupNode}}
- run: npm i --package-lock
- run: npm i --ignore-scripts --package-lock
- run: npm audit
4 changes: 2 additions & 2 deletions lib/content/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
{{> setupGit}}
{{> setupNode}}
- run: npm i
- run: npm i --ignore-scripts
- run: npm run lint {{~#if isWorkspace}} -w {{pkgName}}{{/if}}

test:
Expand All @@ -55,5 +55,5 @@ jobs:
steps:
{{> setupGit}}
{{> setupNode useMatrix=true}}
- run: npm i
- run: npm i --ignore-scripts
- run: npm test --ignore-scripts {{~#if isWorkspace}} -w {{pkgName}}{{/if}}
2 changes: 1 addition & 1 deletion lib/content/post-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
GITHUB_TOKEN: $\{{ secrets.GITHUB_TOKEN }}
run: |
gh pr checkout $\{{ github.event.pull_request.number }}
npm install --no-scripts
npm install --ignore-scripts
npm run template-oss-apply
git add .
git commit -am "chore: postinstall for dependabot template-oss PR"
Expand Down

0 comments on commit 7fd02e2

Please sign in to comment.