From 2f4dc3123edf80f3e99fb41d23fc462407abc524 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 27 Oct 2021 14:57:59 +0800 Subject: [PATCH] chore(release): git tag right after committing (#5434) --- scripts/release.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release.js b/scripts/release.js index 95ce8a5a4bf5f8..d7f258bc70d140 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -154,6 +154,7 @@ async function main() { step('\nCommitting changes...') await runIfNotDry('git', ['add', '-A']) await runIfNotDry('git', ['commit', '-m', `release: ${tag}`]) + await runIfNotDry('git', ['tag', tag]) } else { console.log('No changes to commit.') } @@ -162,7 +163,6 @@ async function main() { await publishPackage(targetVersion, runIfNotDry) step('\nPushing to GitHub...') - await runIfNotDry('git', ['tag', tag]) await runIfNotDry('git', ['push', 'origin', `refs/tags/${tag}`]) await runIfNotDry('git', ['push'])