Skip to content

Commit e892acd

Browse files
authored
Release flow based on npm version (modal-labs#29)
1 parent f6141b6 commit e892acd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
"format:check": "prettier --check .",
3030
"lint": "eslint",
3131
"prepare": "scripts/gen-proto.sh",
32-
"test": "vitest"
32+
"test": "vitest",
33+
"preversion": "(git update-index --really-refresh && git diff-index --quiet HEAD) || (echo 'You must commit all changes before running npm version' && exit 1)",
34+
"version": "npm run build && git add package.json package-lock.json && git commit -m \"modal-js/v$npm_package_version\" && git tag modal-js/v$npm_package_version",
35+
"postversion": "git push && git push --tags && npm publish"
3336
},
3437
"dependencies": {
3538
"long": "^5.3.1",

0 commit comments

Comments
 (0)