diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 84b6eaf1..549243ae 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0e7717e..8067c86d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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 diff --git a/.github/workflows/post-dependabot.yml b/.github/workflows/post-dependabot.yml index a71971e1..bae1d8d2 100644 --- a/.github/workflows/post-dependabot.yml +++ b/.github/workflows/post-dependabot.yml @@ -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" diff --git a/lib/content/audit.yml b/lib/content/audit.yml index ed190440..3680e102 100644 --- a/lib/content/audit.yml +++ b/lib/content/audit.yml @@ -12,5 +12,5 @@ jobs: steps: {{> setupGit}} {{> setupNode}} - - run: npm i --package-lock + - run: npm i --ignore-scripts --package-lock - run: npm audit diff --git a/lib/content/ci.yml b/lib/content/ci.yml index 2c26a0f1..74a05f82 100644 --- a/lib/content/ci.yml +++ b/lib/content/ci.yml @@ -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: @@ -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}} diff --git a/lib/content/post-dependabot.yml b/lib/content/post-dependabot.yml index da58eaf7..ad8b3d42 100644 --- a/lib/content/post-dependabot.yml +++ b/lib/content/post-dependabot.yml @@ -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" diff --git a/tap-snapshots/test/apply/full-content.js.test.cjs b/tap-snapshots/test/apply/full-content.js.test.cjs index 15a6a23a..85953af4 100644 --- a/tap-snapshots/test/apply/full-content.js.test.cjs +++ b/tap-snapshots/test/apply/full-content.js.test.cjs @@ -152,7 +152,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 --package-lock + - run: npm i --ignore-scripts --package-lock - run: npm audit .github/workflows/ci.yml @@ -189,7 +189,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: @@ -241,7 +241,7 @@ 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 .github/workflows/codeql-analysis.yml @@ -331,7 +331,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" @@ -629,7 +629,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 --package-lock + - run: npm i --ignore-scripts --package-lock - run: npm audit .github/workflows/ci-bbb.yml @@ -670,7 +670,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 -w bbb test: @@ -722,7 +722,7 @@ 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 -w bbb .github/workflows/ci-name-aaaa.yml @@ -763,7 +763,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 -w @name/aaaa test: @@ -815,7 +815,7 @@ 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 -w @name/aaaa .github/workflows/ci.yml @@ -852,7 +852,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: @@ -904,7 +904,7 @@ 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 .github/workflows/codeql-analysis.yml @@ -994,7 +994,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" diff --git a/tap-snapshots/test/check/diffs.js.test.cjs b/tap-snapshots/test/check/diffs.js.test.cjs index 8132e1af..3a498f08 100644 --- a/tap-snapshots/test/check/diffs.js.test.cjs +++ b/tap-snapshots/test/check/diffs.js.test.cjs @@ -318,7 +318,7 @@ The repo file ci.yml needs to be updated: + 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 To correct it: npx template-oss-apply --force @@ -358,7 +358,7 @@ The repo file audit.yml needs to be updated: - 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