Skip to content

Commit 911e250

Browse files
ci: remove Husky initialization on npm install (#407)
* Remoe Husky Signed-off-by: Xavier Geerinck <[email protected]> * Doc update Signed-off-by: Xavier Geerinck <[email protected]> Signed-off-by: Xavier Geerinck <[email protected]>
1 parent cd3c5f1 commit 911e250

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
# note: package.json gets updated here for the new package name
6161
- name: Publish to npm (@dapr/dapr)
6262
if: env.DEPLOY_PACKAGE == 'true'
63-
run: HUSKY=0 npm publish build/ --access public
63+
run: npm publish build/ --access public
6464
env:
6565
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6666

@@ -75,6 +75,6 @@ jobs:
7575
# note: package.json gets updated here for the new package name
7676
- name: "[dapr-client] Publish to npm (dapr-client)"
7777
if: env.DEPLOY_PACKAGE == 'true'
78-
run: HUSKY=0 npm publish build/ --access public
78+
run: npm publish build/ --access public
7979
env:
8080
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

daprdocs/content/en/js-sdk-contributing/js-contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: Guidelines for contributing to the Dapr JavaScript SDK
88

99
When contributing to the [JavaScript SDK](https://github.com/dapr/js-sdk) the following rules and best-practices should be followed.
1010

11-
💡 You can run `npm run prepare` to install `pre-commit` hooks to help you adhere to the prettier configuration
11+
💡 You can run `npm pretty-fix` to run prettier on all your files
1212

1313
## Commit Guidelines
1414

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"build": "./scripts/build.sh",
2828
"start:dev": "npm run build && nodemon --ext \".ts,.js\" --watch \"./src\" --exec \"npm run build\"",
2929
"pretty": "prettier --list-different \"**/*.{ts,tsx,js,jsx,json,md}\"",
30-
"pretty-fix": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
31-
"prepare": "husky install"
30+
"pretty-fix": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\""
3231
},
3332
"keywords": [],
3433
"author": "Xavier Geerinck",

0 commit comments

Comments
 (0)