Skip to content

Commit

Permalink
chore(release): git tag right after committing (#5434)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 27, 2021
1 parent d2815e1 commit 2f4dc31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.js
Expand Up @@ -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.')
}
Expand All @@ -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'])

Expand Down

0 comments on commit 2f4dc31

Please sign in to comment.