Skip to content

Commit 955eb76

Browse files
committed
Fix workflow
1 parent 4b8df2d commit 955eb76

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ jobs:
1616
with:
1717
node-version: 10
1818

19-
- run: npm install
20-
21-
- run: npm test
19+
- name: Install and test
20+
rm package-lock.json
21+
npm install --no-optional
22+
npm run test
2223

2324
- uses: JS-DevTools/npm-publish@v1
2425
with:

.github/workflows/unittest.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ jobs:
2323

2424
- name: Run test
2525
run: |
26-
npm install
26+
rm package-lock.json
27+
npm install --no-optional
2728
npm run test

0 commit comments

Comments
 (0)