Skip to content

Commit e76f69b

Browse files
committed
chore: update version scripts
1 parent 90c71ad commit e76f69b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@
9999
"debug": "ts-node src/cli.ts",
100100
"lint": "eslint . bin/rdme bin/set-version-output --ext .js,.ts",
101101
"lint-docs": "npx alex@10 . && npm run prettier",
102-
"postversion": "git tag $(npm pkg get version | tr -d '\"')",
102+
"postversion": "git tag $npm_package_version",
103103
"prebuild": "rm -rf dist/",
104104
"prepack": "npm run build",
105105
"pretest": "npm run lint && npm run lint-docs",
106106
"prettier": "prettier --list-different \"./**/**.{md,js,ts}\"",
107107
"prettier:write": "prettier --list-different --write \"./**/**.{md,js,ts}\"",
108108
"release": "npx conventional-changelog-cli -i CHANGELOG.md -s",
109109
"test": "jest --coverage",
110-
"version": "npm run release && git add ."
110+
"version": "npm run release && git add CHANGELOG.md"
111111
},
112112
"prettier": "@readme/eslint-config/prettier"
113113
}

0 commit comments

Comments
 (0)