Skip to content

Commit

Permalink
Merge pull request #178 from henninghall/patch-1
Browse files Browse the repository at this point in the history
exit build with error if `getPackageJson` fails
  • Loading branch information
phips28 authored Sep 7, 2022
2 parents 401cedc + a4ec0e5 commit ee34ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ if (process.env.PACKAGEJSON_DIR) {
}

const workspace = process.env.GITHUB_WORKSPACE;
const pkg = getPackageJson();

(async () => {
const pkg = getPackageJson();
const event = process.env.GITHUB_EVENT_PATH ? require(process.env.GITHUB_EVENT_PATH) : {};

if (!event.commits && !process.env['INPUT_VERSION-TYPE']) {
Expand Down

0 comments on commit ee34ef3

Please sign in to comment.