Skip to content

Commit

Permalink
chore(workflows): add clean install steps to remove node_modules and …
Browse files Browse the repository at this point in the history
…package-lock.json to fix rollup issues during npm publish process
  • Loading branch information
alisaitteke committed Nov 23, 2024
1 parent addf822 commit 876da03
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm ci
# Clean install to fix rollup issue
- name: Clean dependencies
run: |
rm -rf node_modules package-lock.json
- name: Install dependencies
run: npm ci
- run: npm run typecheck
- run: npm run lint
- run: npm run build
Expand All @@ -33,6 +38,10 @@ jobs:
registry-url: https://npm.pkg.github.com
cache: 'npm'

- name: Clean dependencies
run: |
rm -rf node_modules package-lock.json
- name: Install dependencies
run: npm ci

Expand Down Expand Up @@ -70,6 +79,10 @@ jobs:
registry-url: https://registry.npmjs.org
cache: 'npm'

- name: Clean dependencies
run: |
rm -rf node_modules package-lock.json
- name: Install dependencies
run: npm ci

Expand Down

0 comments on commit 876da03

Please sign in to comment.