Skip to content

Commit

Permalink
Fix exit code (don't use 78)
Browse files Browse the repository at this point in the history
  • Loading branch information
houtianze committed Dec 6, 2019
1 parent 0c4fb0c commit 099e421
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ if (require.main === module) {
if (e instanceof NeutralExitError) {
// it seems that exit code 78 is no longer supported:
// https://github.community/t5/GitHub-Actions/GitHub-Actions-quot-neutral-quot-exit-code-is-incorrectly/td-p/29051
process.exitCode = 78;
// process.exitCode = 0;
// process.exitCode = 78;
process.exitCode = 0;
} else {
process.exitCode = 1;
console.log(e.message || e);
}
console.log(e.message || e);
});
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "npm-publish-action-using-node",
"version": "0.1.2",
"version": "0.1.3",
"description": "GitHub action to automatically publish packages to npm (using node instead of docker)",
"author": "Pascal",
"contributors": [
Expand Down

0 comments on commit 099e421

Please sign in to comment.