Skip to content

Commit 4ac4ece

Browse files
different tip from copilot
1 parent 65e92f5 commit 4ac4ece

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/npm-build.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@ jobs:
2121
- name: Use Node.js ${{ matrix.node-version }}
2222
uses: actions/setup-node@v3
2323
with:
24-
node-version: ${{ matrix.node-version }}
25-
26-
- name: Install packages
27-
working-directory: ./imxweb
28-
run: npm install
24+
node-version: ${{ matrix.node-version }}
25+
cache: npm
26+
cache-dependency-path: imxweb/package-lock.json
27+
28+
- name: Install packages (clean, reproducible)
29+
working-directory: ./imxweb
30+
shell: bash
31+
run: |
32+
set -euo pipefail
33+
npm ci || (rm -rf node_modules package-lock.json && npm install)
2934
3035
- name: Build qbm
3136
working-directory: ./imxweb

0 commit comments

Comments
 (0)