Skip to content

Commit d1329d8

Browse files
Run gh release after commit and tag
1 parent a2d75c0 commit d1329d8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

scripts/publish.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -390,15 +390,6 @@ async function run() {
390390

391391
console.info()
392392

393-
console.info(`Creating github release...`)
394-
// Stringify the markdown to excape any quotes
395-
execSync(
396-
`gh release create v${version} ${
397-
!isMainBranch ? '--prerelease' : ''
398-
} --notes '${changelogMd.replace(/'/g, '"')}'`,
399-
)
400-
console.info(` Github release created.`)
401-
402393
console.info(`Committing changes...`)
403394
execSync(`git add -A && git commit -m "${releaseCommitMsg(version)}"`)
404395
console.info()
@@ -417,6 +408,15 @@ async function run() {
417408
console.info()
418409
console.info(` Tags pushed.`)
419410

411+
console.info(`Creating github release...`)
412+
// Stringify the markdown to excape any quotes
413+
execSync(
414+
`gh release create v${version} ${
415+
!isMainBranch ? '--prerelease' : ''
416+
} --notes '${changelogMd.replace(/'/g, '"')}'`,
417+
)
418+
console.info(` Github release created.`)
419+
420420
console.info(`All done!`)
421421
}
422422

0 commit comments

Comments
 (0)