Skip to content

Commit 3a38fdd

Browse files
authored
let publish script know more about the type of release, instead of hardcoding snapshot for next
1 parent 0509a79 commit 3a38fdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/version-file/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default class VersionFilePlugin implements IPlugin {
141141
// Ship canary release if release script is provided
142142
if(this.publishScript){
143143
auto.logger.log.info(`Calling release script in repo at ${this.publishScript}`);
144-
await execPromise(this.publishScript, ["snapshot"]);
144+
await execPromise(this.publishScript, ["canary"]);
145145
} else {
146146
auto.logger.log.info("Skipping calling release script in repo since none was provided");
147147
}
@@ -188,7 +188,7 @@ export default class VersionFilePlugin implements IPlugin {
188188
// ship next release if release script is provided
189189
if(this.publishScript){
190190
auto.logger.log.info(`Calling release script in repo at ${this.publishScript}`);
191-
await execPromise(this.publishScript, ["snapshot"]);
191+
await execPromise(this.publishScript, ["next"]);
192192
} else {
193193
auto.logger.log.info("Skipping calling release script in repo since none was provided");
194194
}

0 commit comments

Comments
 (0)