Skip to content

Commit 3c3fc3d

Browse files
committed
fix: update npm publish workflow to remove node_modules and package-lock.json before installing dependencies
Signed-off-by: kaifcoder <kaifmohd2014@gmail.com>
1 parent 6e21291 commit 3c3fc3d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ jobs:
1515
- uses: actions/setup-node@v4
1616
with:
1717
node-version: 20
18-
- run: npm ci
18+
- name: Remove node_modules and package-lock.json
19+
run: rm -rf node_modules package-lock.json
20+
- name: install dependencies
21+
run: npm install
1922
- run: npm test
2023

2124
publish-npm:

0 commit comments

Comments
 (0)