Skip to content

Commit d82fab4

Browse files
committed
fix: tag order
1 parent 0d4a522 commit d82fab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/src/scripts/publish-pkg.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ async function main() {
6666
await execPromise('npm publish --access public')
6767
logger.info('published to NPM, adding changes to git')
6868

69-
// tag the commit
70-
await execPromise(`git tag v${pkgVersion}`)
7169
// add changes to git
7270
await execPromise('git add .')
7371
// commit the changes
7472
await execPromise(`git commit -m "chore: publish v${pkgVersion}"`)
73+
// tag the commit
74+
await execPromise(`git tag v${pkgVersion}`)
7575
// push the changes
7676
await execPromise('git push')
7777
// push the tags

0 commit comments

Comments
 (0)