From 824e7a1f5ab372f837e0c6b224b3ddddb1178f42 Mon Sep 17 00:00:00 2001 From: Yuri Tkachenko Date: Mon, 8 Jul 2024 22:05:56 +0200 Subject: [PATCH] ci: use native cache --- .github/workflows/setup/action.yml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/setup/action.yml b/.github/workflows/setup/action.yml index 6777b5419..dbaf9d51f 100644 --- a/.github/workflows/setup/action.yml +++ b/.github/workflows/setup/action.yml @@ -5,30 +5,19 @@ on: workflow_call runs: using: "composite" steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - - - uses: actions/setup-node@v4 - with: - node-version-file: .nvmrc - - name: Enable corepack shell: bash run: corepack enable - - name: Cache dependencies - id: yarn-cache - uses: actions/cache@v3 + - uses: actions/setup-node@v4 with: - path: | - ~/.npm - ~/.cache/yarn - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + node-version-file: .nvmrc + cache: yarn - name: Install dependencies shell: bash run: yarn install - if: steps.yarn-cache.outputs.cache-hit != 'true' + + - name: Show versions + shell: bash + run: node --version && yarn --version