Skip to content

Commit 2ab2a8c

Browse files
committed
chore: clean up npm install command in publish.yml
### Changes - Added command to remove package-lock.json before running npm install in multiple steps of publish.yml to ensure a fresh installation of dependencies.
1 parent 0950d36 commit 2ab2a8c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
cache: 'npm'
3838

3939
- name: Install dependencies
40-
run: npm install
40+
run: |
41+
rm -f package-lock.json
42+
npm install
4143
4244
- name: Lint code
4345
run: npm run lint || echo "No lint script found"
@@ -177,7 +179,9 @@ jobs:
177179
git config user.email "github-actions[bot]@users.noreply.github.com"
178180
179181
- name: Install dependencies
180-
run: npm install
182+
run: |
183+
rm -f package-lock.json
184+
npm install
181185
182186
- name: Build project
183187
run: npm run build
@@ -374,7 +378,9 @@ jobs:
374378
cache: 'npm'
375379

376380
- name: Install dependencies
377-
run: npm install
381+
run: |
382+
rm -f package-lock.json
383+
npm install
378384
379385
- name: Build project
380386
run: npm run build

0 commit comments

Comments
 (0)