Use setup node action
This commit is contained in:
parent
cba87d15da
commit
192f9e9193
|
@ -16,9 +16,11 @@ runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Validate
|
- name: Validate
|
||||||
shell: bash
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20.x'
|
||||||
|
cache: 'npm'
|
||||||
run: |
|
run: |
|
||||||
NPM_GITHUB_TOKEN=${{ inputs.github-token }}
|
NPM_GITHUB_TOKEN=${{ inputs.github-token }}
|
||||||
echo -e "@hyper-tuner:registry=https://npm.pkg.github.com\n//npm.pkg.github.com/:_authToken=${NPM_GITHUB_TOKEN}" > .npmrc
|
echo -e "@hyper-tuner:registry=https://npm.pkg.github.com\n//npm.pkg.github.com/:_authToken=${NPM_GITHUB_TOKEN}" > .npmrc
|
||||||
npm i -g npm@8.15.1
|
|
||||||
npx -y hyper-tuner/ini validate ${{ inputs.filename }}
|
npx -y hyper-tuner/ini validate ${{ inputs.filename }}
|
||||||
|
|
Loading…
Reference in New Issue