Add npm publish scripts
Some checks failed
armco-org/iam-client-sdk/pipeline/head There was a failure building this commit
Some checks failed
armco-org/iam-client-sdk/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -26,7 +26,9 @@
|
||||
"typecheck": "tsc --noEmit",
|
||||
"lint": "eslint src --ext .ts,.tsx",
|
||||
"test": "vitest run",
|
||||
"prepublishOnly": "npm run build"
|
||||
"prepublishOnly": "npm run build",
|
||||
"publish:sh": "./publish.sh",
|
||||
"publish:sh:minor": "./publish.sh minor"
|
||||
},
|
||||
"keywords": [
|
||||
"iam",
|
||||
|
||||
8
publish.sh
Executable file
8
publish.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
semver=${1:-patch}
|
||||
|
||||
set -e
|
||||
npm run build
|
||||
npm --no-git-tag-version version ${semver}
|
||||
npm publish --access public
|
||||
Reference in New Issue
Block a user