Skip to content

Commit

Permalink
Add release scripts for semantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehumphries committed Dec 11, 2024
1 parent 779521f commit f9c0b53
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 @@ -5,7 +5,10 @@
"type": "module",
"scripts": {
"build": "node build.js",
"release": "git stash -u && npm run build && git commit -am 'Update release versions' && git stash pop",
"release": "git stash -u && npm run build && npm version $VER --no-git-tag-version | xargs -I {} git commit -am 'Build {}' && git stash pop",
"release:major": "VER=major npm run release",
"release:minor": "VER=minor npm run release",
"release:patch": "VER=patch npm run release",
"start": "serve docs"
},
"prettier": {
Expand Down

0 comments on commit f9c0b53

Please sign in to comment.