Skip to content

Commit 8382c46

Browse files
committed
Fix Rollup dependency issue in GitHub Actions workflows
1 parent 95ca8b4 commit 8382c46

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/cd.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CD
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66

77
jobs:
88
build-test-publish:
@@ -16,8 +16,10 @@ jobs:
1616
node-version: 20
1717
registry-url: https://registry.npmjs.org/
1818

19-
- name: Install dependencies
20-
run: npm ci
19+
- name: Clean install
20+
run: |
21+
rm -rf node_modules package-lock.json
22+
npm install
2123
2224
- name: Build
2325
run: npm run build
@@ -32,4 +34,4 @@ jobs:
3234
if: ${{ vars.ENVIRONMENT == 'prod' }}
3335
run: npm publish --access public
3436
env:
35-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
pull_request:
5-
branches: [ main ]
5+
branches: [main]
66
push:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
build-and-test:
@@ -17,8 +17,10 @@ jobs:
1717
with:
1818
node-version: 20
1919

20-
- name: Install dependencies
21-
run: npm ci
20+
- name: Clean install
21+
run: |
22+
rm -rf node_modules package-lock.json
23+
npm install
2224
2325
- name: Build
2426
run: npm run build
@@ -27,4 +29,4 @@ jobs:
2729
run: npm run check
2830

2931
- name: Run tests
30-
run: npm run test
32+
run: npm run test

0 commit comments

Comments
 (0)