From f57ef799438886f2215ebc0222fd86129d3e2d65 Mon Sep 17 00:00:00 2001 From: Stephen Li Date: Mon, 22 Jan 2024 21:27:45 -0500 Subject: [PATCH] Use setup-node to cache yarn --- .github/workflows/release-build.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index e8d9c4c..5882cd0 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -25,17 +25,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Save yarn cache location to env - run: echo "YARN_CACHE=$(yarn cache dir)" >> $GITHUB_ENV - - - name: Cache node_modules - uses: actions/cache@v3 + - name: Set up node + uses: actions/setup-node@v4 with: - path: ${{ env.YARN_CACHE }} - key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock', '**/package-lock.json') }} + node-version: 20 + cache: yarn - name: Install dependencies - run: yarn install + run: yarn install --frozen-lockfile - name: Run linter run: yarn lint