Skip to content

Commit

Permalink
versioning scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Oct 12, 2024
1 parent 8d328f0 commit 0db890e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"lint": "eslint",
"lint:fix": "eslint --fix",
"test": "mocha",
"build": "./build-release.mjs"
"build": "./build-release.mjs",
"preversion": "npm test",
"version": "npm run build && git add -A dist",
"postversion": "git push origin HEAD && git push origin v$(npm pkg get version --workspaces=false | tr -d \\\")"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 0db890e

Please sign in to comment.