Skip to content

Commit b3c9fba

Browse files
committed
Skip install script when running npm ci in workflow
1 parent 3ae9213 commit b3c9fba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: sudo apt-get install -y build-essential libgl1-mesa-dri libglapi-mesa
2626
libglew-dev libglu1-mesa-dev libosmesa6
2727
libxi-dev mesa-utils pkg-config
28-
- run: npm ci
28+
- run: npm ci --ignore-scripts
2929
- run: npm run build --if-present
3030
- if: runner.os == 'Linux'
3131
run: xvfb-run npm test

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: sudo apt-get install -y build-essential libgl1-mesa-dri libglapi-mesa
3030
libglew-dev libglu1-mesa-dev libosmesa6
3131
libxi-dev mesa-utils pkg-config
32-
- run: npm ci
32+
- run: npm ci --ignore-scripts
3333
- name: Prebuild and Publish
3434
shell: bash
3535
run: node ./node_modules/prebuild/bin.js -t ${{ matrix.target }} --strip --include-regex "\.(node|dll)$" -u ${{ secrets.GITHUB_TOKEN }} --verbose
@@ -59,7 +59,7 @@ jobs:
5959
node-version: '22.x'
6060
registry-url: 'https://registry.npmjs.org'
6161
cache: 'npm'
62-
- run: npm ci
62+
- run: npm ci --ignore-scripts
6363
- run: npm publish --provenance --access public
6464
env:
6565
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)