Skip to content

Commit 47b8a91

Browse files
authored
chore: write correct version in package.json file on version bump (#21)
1 parent 00517e8 commit 47b8a91

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

.husky/prepare-commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
exec </dev/tty && node_modules/.bin/cz --hook || true
4+
(exec </dev/tty && node_modules/.bin/cz --hook) || true 2> /dev/null

package-lock.json

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"devDependencies": {
4949
"@ryansonshine/commitizen": "^4.2.8",
5050
"@ryansonshine/cz-conventional-changelog": "^3.3.4",
51+
"@semantic-release/git": "^10.0.1",
5152
"@types/jest": "^27.5.2",
5253
"@types/node": "^12.20.11",
5354
"@typescript-eslint/eslint-plugin": "^4.22.0",
@@ -116,6 +117,15 @@
116117
}
117118
],
118119
"@semantic-release/npm",
120+
[
121+
"@semantic-release/git",
122+
{
123+
"assets": [
124+
"package.json"
125+
],
126+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
127+
}
128+
],
119129
"@semantic-release/github"
120130
]
121131
}

0 commit comments

Comments
 (0)