[actions] use `node/install` instead of `node/run`
parent
eed0d0e85c
commit
7ba49f8f71
|
@ -34,13 +34,13 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ljharb/actions/node/run@main
|
||||
- uses: ljharb/actions/node/install@main
|
||||
name: 'nvm install-latest-npm'
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
skip-ls-check: true
|
||||
skip-install: true
|
||||
shell-command: 'npm --version'
|
||||
- run: npm --version
|
||||
|
||||
node:
|
||||
name: 'nvm install-latest-npm'
|
||||
|
|
|
@ -7,31 +7,31 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ljharb/actions/node/run@main
|
||||
name: 'npm install && npm run eclint'
|
||||
- uses: ljharb/actions/node/install@main
|
||||
name: 'nvm install ${{ matrix.node-version }} && npm install'
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
command: 'eclint'
|
||||
- run: npm run eclint
|
||||
|
||||
dockerfile_lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ljharb/actions/node/run@main
|
||||
name: 'npm install && npm run dockerfile_lint'
|
||||
- uses: ljharb/actions/node/install@main
|
||||
name: 'nvm install ${{ matrix.node-version }} && npm install'
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
command: 'dockerfile_lint'
|
||||
- run: npm run dockerfile_lint'
|
||||
|
||||
doctoc:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ljharb/actions/node/run@main
|
||||
name: 'npm install && npm run doctoc'
|
||||
- uses: ljharb/actions/node/install@main
|
||||
name: 'nvm install ${{ matrix.node-version }} && npm install'
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
command: "doctoc:check"
|
||||
- run: npm run doctoc:check
|
||||
|
||||
test_naming:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in New Issue