[actions] use `node/install` instead of `node/run`

Jordan Harband 2021-07-27 22:23:56 -07:00
parent eed0d0e85c
commit 7ba49f8f71
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
2 changed files with 11 additions and 11 deletions

View File

@ -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'

View File

@ -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