fix env if
This commit is contained in:
parent
4e1b9e0a2e
commit
e6e14ff6e4
3
index.js
3
index.js
|
@ -160,8 +160,7 @@ const workspace = process.env.GITHUB_WORKSPACE;
|
||||||
|
|
||||||
// case: when user wants to skip updating package-lock.json v2
|
// case: when user wants to skip updating package-lock.json v2
|
||||||
try {
|
try {
|
||||||
const bumpPackageLock = process.env['INPUT_BUMP_PACKAGE-LOCK']
|
if (process.env['INPUT_BUMP_PACKAGE-LOCK'] === 'true') {
|
||||||
if (bumpPackageLock) {
|
|
||||||
await runInWorkspace('npm', ['install', '--package-lock-only', '--ignore-scripts'])
|
await runInWorkspace('npm', ['install', '--package-lock-only', '--ignore-scripts'])
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|
Loading…
Reference in New Issue