diff --git a/package.json b/package.json index 0690ae2..b885c64 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,8 @@ "test": "node tests/run-tests.js", "preversion--temp-disabled": "yarn test", "push": "git push --follow-tags", - "postversion": "auto-changelog -p --hide-empty-releases && git add CHANGELOG.md && git commit --no-edit --amend && git tag -af \"v$(node -e \"console.log(require('./package.json').version)\")\" && echo \"REMEMBER TO USE YARN PUSH\"" + "postversion": "auto-changelog -p --hide-empty-releases && git add CHANGELOG.md && git commit --no-edit --amend && yarn postversion-retag && echo \"REMEMBER TO USE YARN PUSH\"", + "postversion-retag": "git commit --no-edit --amend && node -e \"console.log('v'+require('./package.json').version)\" | xargs -I{} git tag -a -f {} -m {}" }, "homepage": "https://github.com/burtek/eslint-config#readme", "bugs": "https://github.com/burtek/eslint-config/issues",