Skip to content

Commit 8d47a1b

Browse files
committed
chore(package.json): revert version to 2.2.3 and remove postversion script as it is no longer needed
feat(package.json): add deploy script to automate versioning, building, pushing and publishing the package to npm registry
1 parent fad05e0 commit 8d47a1b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opencommit",
3-
"version": "2.2.4",
3+
"version": "2.2.3",
44
"description": "Auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
55
"keywords": [
66
"git",
@@ -41,9 +41,8 @@
4141
"start": "node ./out/cli.cjs",
4242
"dev": "ts-node ./src/cli.ts",
4343
"build": "rimraf out && node esbuild.config.js",
44-
"deploy": "npm run build:push && npm version patch && npm run postversion",
44+
"deploy": "npm version patch && npm run build:push && git push --tags && npm publish --tag latest",
4545
"build:push": "npm run build && git add . && git commit -m 'build' && git push",
46-
"postversion": "npm run build && git add . && git commit --amend --no-edit && git push && git push --tags && npm publish --tag latest",
4746
"lint": "eslint src --ext ts && tsc --noEmit",
4847
"format": "prettier --write src"
4948
},

0 commit comments

Comments
 (0)