Merge pull request #13 from sammccants/fix_custom_package_dir
Fix issue with finding package.json outside of root
This commit is contained in:
commit
b40749255b
3
index.js
3
index.js
|
@ -3,7 +3,8 @@ const { execSync } = require('child_process')
|
||||||
|
|
||||||
// Change working directory if user defined PACKAGEJSON_DIR
|
// Change working directory if user defined PACKAGEJSON_DIR
|
||||||
if (process.env.PACKAGEJSON_DIR) {
|
if (process.env.PACKAGEJSON_DIR) {
|
||||||
process.chdir(`${process.env.GITHUB_WORKSPACE}/${process.env.PACKAGEJSON_DIR}`)
|
process.env.GITHUB_WORKSPACE = `${process.env.GITHUB_WORKSPACE}/${process.env.PACKAGEJSON_DIR}`
|
||||||
|
process.chdir(process.env.GITHUB_WORKSPACE)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run your GitHub Action!
|
// Run your GitHub Action!
|
||||||
|
|
Loading…
Reference in New Issue