Skip to content

Commit b4964b3

Browse files
committed
ci: fully disable npm cache, force clean all modules/lockfile in CI for env parity
1 parent 02bfec4 commit b4964b3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,23 @@ jobs:
1515
uses: actions/setup-node@v4
1616
with:
1717
node-version: '18.x'
18-
cache: 'npm'
1918
scope: '@foo-software'
19+
- name: Full Clean (no npm cache)
20+
run: |
21+
rm -rf node_modules
22+
rm -rf packages/*/node_modules
23+
rm -rf package-lock.json
2024
- name: Use stable npm version
2125
run: npm install -g [email protected]
2226
- name: Install
2327
run: |
2428
npm ci
2529
npm run lerna -- bootstrap --hoist
30+
- name: Show installed type versions
31+
run: |
32+
npm ls @types/node || true
33+
npm ls @jest/types || true
34+
2635
- name: Publish Packages
2736
run: |
2837
echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' > ${{ github.workspace }}/.npmrc

0 commit comments

Comments
 (0)