Skip to content

Commit

Permalink
let publish script know more about the type of release, instead of ha…
Browse files Browse the repository at this point in the history
…rdcoding snapshot for next
  • Loading branch information
sugarmanz authored Jul 12, 2024
1 parent 0509a79 commit 3a38fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/version-file/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default class VersionFilePlugin implements IPlugin {
// Ship canary release if release script is provided
if(this.publishScript){
auto.logger.log.info(`Calling release script in repo at ${this.publishScript}`);
await execPromise(this.publishScript, ["snapshot"]);
await execPromise(this.publishScript, ["canary"]);
} else {
auto.logger.log.info("Skipping calling release script in repo since none was provided");
}
Expand Down Expand Up @@ -188,7 +188,7 @@ export default class VersionFilePlugin implements IPlugin {
// ship next release if release script is provided
if(this.publishScript){
auto.logger.log.info(`Calling release script in repo at ${this.publishScript}`);
await execPromise(this.publishScript, ["snapshot"]);
await execPromise(this.publishScript, ["next"]);
} else {
auto.logger.log.info("Skipping calling release script in repo since none was provided");
}
Expand Down

0 comments on commit 3a38fdd

Please sign in to comment.