Skip to content

Commit 405c357

Browse files
committed
Add preversion / postversion hooks in package.json
1 parent dbd44fc commit 405c357

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
"lint:fix": "eslint validation-output.ts --fix",
3030
"format": "prettier --check validation-output.ts",
3131
"format:fix": "prettier --write validation-output.ts",
32-
"prepublishOnly": "npm run format && npm run lint && npm run build"
32+
"prepublishOnly": "npm run format && npm run lint && npm run build",
33+
"preversion": "npm run format && npm run lint",
34+
"postversion": "git push && git push --tags && npm publish"
3335
},
3436
"devDependencies": {
3537
"@eslint/js": "^9.38.0",

0 commit comments

Comments
 (0)