From fef214091c487321a13e3e19f479dda22fbc2006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Jerkovi=C4=87?= Date: Thu, 1 Feb 2024 09:45:02 +0100 Subject: [PATCH] build: specify exact NodeJS version in github actions --- .github/workflows/default.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 71a4cb2..8077507 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -16,12 +16,10 @@ jobs: with: fetch-depth: 0 persist-credentials: false - - uses: actions/cache@v4 + - uses: actions/setup-node@v4 with: - path: | - node_modules - .yarn/cache - key: node_modules-${{ hashFiles('**/yarn.lock') }} + node-version: 20.x + cache: yarn - run: yarn install env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -41,12 +39,10 @@ jobs: with: fetch-depth: 0 persist-credentials: false - - uses: actions/cache@v4 + - uses: actions/setup-node@v4 with: - path: | - node_modules - .yarn/cache - key: node_modules-${{ hashFiles('**/yarn.lock') }} + node-version: 20.x + cache: yarn - uses: actions/download-artifact@v4 with: name: dist