Skip to content

Commit 89fccec

Browse files
Configure publish-please for npm releases
1 parent 07660dd commit 89fccec

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.publishrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"validations": {
3+
"vulnerableDependencies": false,
4+
"uncommittedChanges": true,
5+
"untrackedFiles": true,
6+
"sensitiveData": true,
7+
"branch": "master",
8+
"gitTag": true
9+
},
10+
"confirm": true,
11+
"publishCommand": "npm publish",
12+
"publishTag": "latest",
13+
"prePublishScript": "npm run publish-please-prereqs",
14+
"postPublishScript": false
15+
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"lint": "tsc -p ./tsconfig.json && eslint ./src --report-unused-disable-directives --ext .js,.ts --parser-options=project:./tsconfig.json",
2727
"lint-demo": "tsc -p ./demo/tsconfig.json && eslint ./demo --report-unused-disable-directives --ext .js,.ts --parser-options=project:./demo/tsconfig.json",
2828
"precommit": "pretty-quick --staged",
29+
"prepublish": "npx publish-please guard",
30+
"publish-please": "npx publish-please",
31+
"publish-please-prereqs": "npm run lint && npm run test && npm run build",
2932
"test": "jest --coverage",
3033
"travisci": "npm run lint && npm run test && codecov && npx snyk test"
3134
},

0 commit comments

Comments
 (0)