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 authored Oct 27, 2021
1 parent 232ddb9 commit dd3f750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
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 dd3f750

Please sign in to comment.