exit build with error if getPackageJson fails
This commit is contained in:
parent
401cedccb0
commit
a4ec0e5231
2
index.js
2
index.js
|
@ -11,9 +11,9 @@ if (process.env.PACKAGEJSON_DIR) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const workspace = process.env.GITHUB_WORKSPACE;
|
const workspace = process.env.GITHUB_WORKSPACE;
|
||||||
|
const pkg = getPackageJson();
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const pkg = getPackageJson();
|
|
||||||
const event = process.env.GITHUB_EVENT_PATH ? require(process.env.GITHUB_EVENT_PATH) : {};
|
const event = process.env.GITHUB_EVENT_PATH ? require(process.env.GITHUB_EVENT_PATH) : {};
|
||||||
|
|
||||||
if (!event.commits && !process.env['INPUT_VERSION-TYPE']) {
|
if (!event.commits && !process.env['INPUT_VERSION-TYPE']) {
|
||||||
|
|
Loading…
Reference in New Issue