Use setup node action

This commit is contained in:
Piotr Rogowski 2024-04-29 22:11:21 +02:00
parent cba87d15da
commit 192f9e9193
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
1 changed files with 4 additions and 2 deletions

View File

@ -16,9 +16,11 @@ runs:
using: composite
steps:
- name: Validate
shell: bash
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
run: |
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
npm i -g npm@8.15.1
npx -y hyper-tuner/ini validate ${{ inputs.filename }}