From 192f9e9193e27a698a39f1e1f8d7b4ccc7ac07bf Mon Sep 17 00:00:00 2001 From: Piotr Rogowski Date: Mon, 29 Apr 2024 22:11:21 +0200 Subject: [PATCH] Use setup node action --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index f1fce83..48286e0 100644 --- a/action.yml +++ b/action.yml @@ -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 }}