Add npm publish scripts
Some checks failed
armco-org/iam-client-sdk/pipeline/head There was a failure building this commit

This commit is contained in:
2025-12-28 19:13:50 +05:30
parent 607cdd8e04
commit 498dfaf190
2 changed files with 11 additions and 1 deletions

View File

@@ -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
View 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