From c5f73e9eb670f538c9a8b1462d51b1b158aa08b8 Mon Sep 17 00:00:00 2001 From: Bartosz Date: Tue, 9 Jan 2024 15:17:18 +0100 Subject: [PATCH] Fix git tagging --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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",