Skip to content

Commit

Permalink
Scripting the process of bumping a patch/minor version. Intentionally…
Browse files Browse the repository at this point in the history
… keeping bumping separate from publishing/pushing, in case there are issues. Also, intentionally not git pushing until after tests complete and the git repo is also updated.
  • Loading branch information
patricknelson committed Feb 20, 2024
1 parent f4db146 commit 8c321fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tag-version-prefix=""
message="Bump to %s"
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"vitest": "vitest run",
"eslint": "eslint index.js tests/*",
"build": "tsc --emitDeclarationOnly",
"pub": "npm run test && npm run eslint && npm run build && npm publish"
"bump:patch": "npm version patch",
"bump:minor": "npm version minor",
"pub": "npm run test && npm run eslint && npm run build && git push --tags && npm publish"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 8c321fa

Please sign in to comment.