From: Alex Lam S.L Date: Mon, 6 Apr 2020 17:14:16 +0000 (+0100) Subject: fix export of PATH to Node.js (#3765) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=94bc22166925031f00d0f7f8beecb0a15a8313bc;p=UglifyJS.git fix export of PATH to Node.js (#3765) --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9e22150..a84daf30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,12 +22,13 @@ jobs: shell: bash run: | git clone --branch v1.5.4 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs - cd ~/.nvs - chmod a+x ./nvs.sh - while !(./nvs.sh --version); do git clean -xdf; done; - while !(./nvs.sh add $NODE); do echo "'nvs add $NODE' failed - retrying..."; done; - ./nvs.sh use $NODE - cd - + while !(. ~/.nvs/nvs.sh add $NODE); do + cd ~/.nvs + git clean -xdf + cd - + done + . ~/.nvs/nvs.sh --version + nvs use $NODE node --version npm config set audit false npm config set optional false diff --git a/.github/workflows/ufuzz.yml b/.github/workflows/ufuzz.yml index be20849e..c2d63a4a 100644 --- a/.github/workflows/ufuzz.yml +++ b/.github/workflows/ufuzz.yml @@ -16,12 +16,13 @@ jobs: shell: bash run: | git clone --branch v1.5.4 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs - cd ~/.nvs - chmod a+x ./nvs.sh - while !(./nvs.sh --version); do git clean -xdf; done; - while !(./nvs.sh add 10); do echo "'nvs add 10' failed - retrying..."; done; - ./nvs.sh use 10 - cd - + while !(. ~/.nvs/nvs.sh add 10); do + cd ~/.nvs + git clean -xdf + cd - + done + . ~/.nvs/nvs.sh --version + nvs use 10 node --version npm config set audit false npm config set optional false