Skip to content
This repository was archived by the owner on Aug 4, 2022. It is now read-only.

Commit e6fb22c

Browse files
committed
fix #2 npm publish
1 parent 556feaf commit e6fb22c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.github/workflows/npmpublish.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jobs:
2424
with:
2525
node-version: 12
2626
registry-url: https://registry.npmjs.org/
27-
- run: npm install
28-
- run: npm run build
2927
- run: npm publish
3028
env:
3129
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
@@ -40,8 +38,6 @@ jobs:
4038
node-version: 12
4139
registry-url: https://npm.pkg.github.com/
4240
scope: '@your-github-username'
43-
- run: npm install
44-
- run: npm run build
4541
- run: npm publish
4642
env:
4743
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"test": "jest --verbose",
1414
"watch-test": "npm run test -- --watchAll",
1515
"clean": "rimraf dist coverage node_modules",
16-
"prepack": "npm run clean && npm run build"
16+
"prepack": "npm i && npm run clean && npm run build"
1717
},
1818
"dependencies": {
1919
"rimraf": "^3.0.0",

0 commit comments

Comments
 (0)