Skip to content

Commit 752dc96

Browse files
committed
[actions] use node/install instead of node/run
1 parent c2a790a commit 752dc96

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.github/workflows/node-4+.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ jobs:
5757

5858
steps:
5959
- uses: actions/checkout@v2
60-
- uses: ljharb/actions/node/run@main
61-
name: 'npm install && npm run tests-only'
60+
- uses: ljharb/actions/node/install@main
61+
name: 'nvm install ${{ matrix.node-version }} && npm install'
6262
with:
63-
after_install: NPM_CONFIG_LEGACY_PEER_DEPS=true npm install --no-save "eslint@${{ matrix.eslint }}"
6463
node-version: ${{ matrix.node-version }}
65-
command: 'unit-test'
66-
after_success: 'npm run coveralls'
64+
after_install: NPM_CONFIG_LEGACY_PEER_DEPS=true npm install --no-save "eslint@${{ matrix.eslint }}"
6765
skip-ls-check: true
66+
- run: npm run unit-test
67+
- run: npm run coveralls
6868

6969
node:
7070
name: 'node 4+'

.github/workflows/node-pretest.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@v2
11-
- uses: ljharb/actions/node/run@main
12-
name: 'npm install && npm run pretest'
11+
- uses: ljharb/actions/node/install@main
12+
name: 'nvm install lts/* && npm install'
1313
with:
1414
node-version: 'lts/*'
15-
command: 'pretest'
1615
skip-ls-check: true
16+
- run: npm run pretest
1717

1818
posttest:
1919
runs-on: ubuntu-latest
2020

2121
steps:
2222
- uses: actions/checkout@v2
23-
- uses: ljharb/actions/node/run@main
24-
name: 'npm install && npm run posttest'
23+
- uses: ljharb/actions/node/install@main
24+
name: 'nvm install lts/* && npm install'
2525
with:
2626
node-version: 'lts/*'
27-
command: 'posttest'
2827
skip-ls-check: true
28+
- run: npm run posttest

.github/workflows/readme.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@v2
11-
- uses: ljharb/actions/node/run@main
12-
name: 'npm install && npm run generate-list-of-rules'
11+
- uses: ljharb/actions/node/install@main
12+
name: 'nvm install lts/* && npm install'
1313
with:
1414
node-version: 'lts/*'
15-
command: 'generate-list-of-rules'
16-
skip-ls-check: true
15+
skip-ls-check: true
16+
- run: npm run generate-list-of-rules

0 commit comments

Comments
 (0)