Skip to content

Commit 1c08db3

Browse files
committed
ci: run npm ci --ignore-scripts for workflows
1 parent 9f60d2c commit 1c08db3

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/actions/setup-docspace/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ runs:
1515
cache-dependency-path: 'website/package-lock.json'
1616

1717
- name: Install 🔧
18-
run: npm ci
18+
run: |
19+
npm ci --ignore-scripts
20+
npm rebuild sharp
1921
shell: bash
2022
working-directory: website
2123

.github/actions/setup-workspace/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ runs:
2929

3030
- name: Install and build 🔧
3131
if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
32-
run: npm ci --prefer-offline
32+
run: npm ci --ignore-scripts --prefer-offline
3333
shell: bash

.github/workflows/release-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Check lock file
8181
# runs npm install using package-lock.json and verifies
8282
# if dependencies are matching with package.json or not
83-
run: npm ci
83+
run: npm ci --ignore-scripts
8484
# This will tell npm to publish your scoped package with public access
8585
- name: Publish with latest tag
8686
if: ${{ needs.setup_variables.outputs.isLatest == 'true' }}

scripts/test-examples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const executeTest = () => {
1414
logger.log('ensuring all dependencies of target project are installed')
1515
logger.log()
1616

17-
execa.sync('npm', ['ci'], { cwd: projectPath })
17+
execa.sync('npm', ['ci', '--ignore-scripts'], { cwd: projectPath })
1818
logger.log()
1919

2020
logger.log('installing bundled version of ts-jest')

0 commit comments

Comments
 (0)