Skip to content

Commit

Permalink
Skip publish-action on --dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
codykaup committed Oct 8, 2024
1 parent be33c60 commit f405b0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/publish-action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ const publishAction = async ({ major, version, repo }) => {
console.info(`📌 Using package.json version: ${version}`);
} else {
const data = JSON.parse(process.env.ARG_0);
if (data.dryRun) {
console.info('Running as --dry-run, skipping publish action');
return;
}
context = data.context;
version = data.newVersion.replace(/^v/, '');
console.info(`📌 Using auto shipIt context: ${context}`);
Expand Down

0 comments on commit f405b0b

Please sign in to comment.