Skip to content

Commit

Permalink
attempt to fix double execution of publish
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-theriault-swi committed Apr 9, 2024
1 parent 33b520c commit 079f254
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ if (publishedVersions.includes(version)) {
process.exit()
}

let command = "yarn pack && npm publish package.tgz"
cproc.execSync("yarn pack", { stdio: "inherit" })

let command = "npm publish package.tgz"
if (version.includes("pre")) {
command += " --tag prerelease"
}

console.log(`$ ${command}`)
cproc.execSync(command, { stdio: "inherit" })

0 comments on commit 079f254

Please sign in to comment.