[actions] use `node/install` instead of `node/run`
diff --git a/.github/workflows/latest-npm.yml b/.github/workflows/latest-npm.yml
index 54b260a..db461b7 100644
--- a/.github/workflows/latest-npm.yml
+++ b/.github/workflows/latest-npm.yml
@@ -34,13 +34,13 @@
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'
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 67d32ee..83872ff 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -7,31 +7,31 @@
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