Skip to content

Commit e67c72a

Browse files
committed
fix: remove node_modules and package-lock.json before npm install in publish job
Signed-off-by: kaifcoder <kaifmohd2014@gmail.com>
1 parent e5f8d8b commit e67c72a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
with:
3131
node-version: 20
3232
registry-url: https://registry.npmjs.org/
33+
34+
- name: Remove node_modules and package-lock.json
35+
run: rm -rf node_modules package-lock.json
3336
- run: npm i
3437
- run: npm publish
3538
env:

0 commit comments

Comments
 (0)