Skip to content

Commit c497ea2

Browse files
committed
fix npm CI bug in deployment env
1 parent 7ed042f commit c497ea2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ jobs:
3636
- name: Set package.json version
3737
run: |
3838
jq '.version = "${{ needs.prepare.outputs.version }}"' package.json > package.json.tmp && mv package.json.tmp package.json
39-
- run: npm ci
39+
- name: Clear npm cache and install dependencies
40+
run: |
41+
npm cache clean --force
42+
rm -rf node_modules package-lock.json
43+
npm install
4044
- run: npm test --silent
4145
- name: Publish pre-release to npm with dist-tag "next"
4246
if: needs.prepare.outputs.is_prerelease == 'true'

0 commit comments

Comments
 (0)