-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from dmvict/workflows
READY: Synchronize workflows with `js_action` branch, remove extra steps
- Loading branch information
Showing
3 changed files
with
3 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,23 +39,11 @@ jobs : | |
- name : ${{ matrix.node-version }} | ||
uses : Wandalen/wretry.action@master | ||
with : | ||
action : actions/setup-node@v2 | ||
action : actions/setup-node@v4 | ||
with : | | ||
node-version : ${{ matrix.node-version }} | ||
attempt_limit : 3 | ||
attempt_delay: 1000 | ||
- name : Save npm version | ||
id : getnpmver | ||
run : | | ||
echo "npmver=$(npm -v)" >> $GITHUB_OUTPUT | ||
- name : Update npm if current version is 6 | ||
if : "startsWith( steps.getnpmver.outputs.npmver, '6.' )" | ||
run : npm install -g npm@latest-6 | ||
- name : Update node-gyp | ||
if: ${{ matrix.os == 'windows-latest' && matrix.node-version != '18.x' }} | ||
run : | | ||
npm install --global [email protected] | ||
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} | ||
- name : Install willbe | ||
uses : Wandalen/wretry.action@master | ||
with : | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,21 +35,11 @@ jobs : | |
- name : ${{ matrix.node-version }} | ||
uses : Wandalen/wretry.action@master | ||
with : | ||
action : actions/setup-node@v2 | ||
action : actions/setup-node@v4 | ||
with : | | ||
node-version : ${{ matrix.node-version }} | ||
attempt_limit : 3 | ||
attempt_delay: 1000 | ||
- name : Update npm | ||
if : ${{ matrix.os == 'windows-latest' && matrix.node-version > '14.x' }} | ||
run : | | ||
npm install --global --production npm-windows-upgrade | ||
npm-windows-upgrade --npm-version latest | ||
- name : Update node-gyp | ||
if: ${{ matrix.os == 'windows-latest' && matrix.node-version != '18.x' }} | ||
run : | | ||
npm install --global [email protected] | ||
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} | ||
- name : Install willbe | ||
uses : Wandalen/wretry.action@master | ||
with : | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,23 +38,11 @@ jobs : | |
- name : ${{ matrix.node-version }} | ||
uses : Wandalen/wretry.action@master | ||
with : | ||
action : actions/setup-node@v2 | ||
action : actions/setup-node@v4 | ||
with : | | ||
node-version : ${{ matrix.node-version }} | ||
attempt_limit : 3 | ||
attempt_delay: 1000 | ||
- name : Save npm version | ||
id : getnpmver | ||
run : | | ||
echo "npmver=$(npm -v)" >> $GITHUB_OUTPUT | ||
- name : Update npm if current version is 6 | ||
if : "startsWith( steps.getnpmver.outputs.npmver, '6.' )" | ||
run : npm install -g npm@latest-6 | ||
- name : Update node-gyp | ||
if: ${{ matrix.os == 'windows-latest' && matrix.node-version != '18.x' }} | ||
run : | | ||
npm install --global [email protected] | ||
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} | ||
- name : Install willbe | ||
uses : Wandalen/wretry.action@master | ||
with : | ||
|