Skip to content

Commit c9ba78c

Browse files
committed
Update npm publish script and prepare script in package.json
1 parent 98b3300 commit c9ba78c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
# - run: npm test
2020
# env:
2121
# CI: true
22-
- run: npm publish --ignore-scripts
22+
- run: npm publish
2323
env:
2424
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"main": "./src/cli.js",
77
"scripts": {
88
"lint": "prettier --write ./src",
9-
"prepare": "husky install",
9+
"prepare": "[ -f ./node_modules/.bin/husky ] && husky install || echo 'Skipping husky install'",
1010
"test": "jest --coverage --silent"
1111
},
1212
"bin": {

0 commit comments

Comments
 (0)