use npm n to update node in unity builder

pull/353/head
Frostebite 2022-04-03 20:23:41 +01:00
parent b6824ac46b
commit d136867f4c
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -3207,7 +3207,7 @@ class BuildAutomationWorkflow {
static get FullWorkflow() { static get FullWorkflow() {
const hooks = cloud_runner_build_command_process_1.CloudRunnerBuildCommandProcessor.getHooks(cloud_runner_1.default.buildParameters.customJobHooks).filter((x) => x.step.includes(`setup`)); const hooks = cloud_runner_build_command_process_1.CloudRunnerBuildCommandProcessor.getHooks(cloud_runner_1.default.buildParameters.customJobHooks).filter((x) => x.step.includes(`setup`));
return `apt-get update return `apt-get update
apt-get install -y -q zip tree nodejs git-lfs jq unzip git apt-get install -y -q zip tree npm git-lfs jq unzip git
npm install -g n npm install -g n
n stable n stable
${hooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '} ${hooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -78,7 +78,7 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
x.step.includes(`setup`), x.step.includes(`setup`),
); );
return `apt-get update return `apt-get update
apt-get install -y -q zip tree nodejs git-lfs jq unzip git apt-get install -y -q zip tree npm git-lfs jq unzip git
npm install -g n npm install -g n
n stable n stable
${hooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '} ${hooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '}