Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to restrict publishing to greater package version only #44

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing lint issues and adding existing functionality test
  • Loading branch information
Tohaker committed Sep 13, 2021
commit 265fdaf55032877fe2a5ab87bf4cd66fdb746674
10 changes: 7 additions & 3 deletions src/action/index.ts
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ import { Access, Options } from "../options";

/**
* The main entry point of the GitHub Action
*
* @internal
*/
async function main(): Promise<void> {
@@ -33,11 +34,13 @@ async function main(): Promise<void> {
console.log(
`\n📦 ${results.package} v${results.version} is already published to NPM`
);
} else if (results.dryRun) {
}
else if (results.dryRun) {
console.log(
`\n📦 ${results.package} v${results.version} was NOT actually published to NPM (dry run)`
);
} else {
}
else {
console.log(
`\n📦 Successfully published ${results.package} v${results.version} to NPM`
);
@@ -50,7 +53,8 @@ async function main(): Promise<void> {
setOutput("tag", results.tag);
setOutput("access", results.access);
setOutput("dry-run", results.dryRun);
} catch (error) {
}
catch (error) {
errorHandler(error as Error);
}
}
Loading
Oops, something went wrong.