From 0b207904aa38cd9105d34ad8251c290a794645e6 Mon Sep 17 00:00:00 2001 From: Jake Strawn Date: Thu, 15 Feb 2024 12:40:49 -0500 Subject: [PATCH] feat(actions): Use local yarn version. --- .github/workflows/build.yml | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a3c655b7..70a63623 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,31 +57,11 @@ jobs: # Defaults to the user or organization that owns the workflow file scope: '@phase2' - - name: Setup Corepack - run: corepack enable - - name: Initialize .npmrc run: cp $NPM_CONFIG_USERCONFIG .npmrc - # # @see https://github.com/marketplace/actions/cache - # # node_modules caching is validated by always running yarn install. - # # Turborepo cache lives inside node_modules/.cache/turbo - # - name: Get yarn cache directory path - # id: yarn-cache-dir-path - # run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - # - name: Setup Cache - # id: cache-yarn - # uses: actions/cache@v3 - # env: - # cache-name: cache-node-modules - # with: - # path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - # key: ${{ runner.os }}-node-yarn-18-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} - # restore-keys: - # ${{ runner.os }}-node-yarn-18-${{ env.cache-name }}- - # ${{ runner.os }}-node-yarn-${{ env.cache-name }}- - # ${{ runner.os }}-node-yarn- + - name: Use local Yarn version + run: echo "$(pwd)/.yarn/releases" >> $GITHUB_PATH - name: Install run: yarn install @@ -121,8 +101,8 @@ jobs: # Defaults to the user or organization that owns the workflow file scope: '@phase2' - - name: Setup Corepack - run: corepack enable + - name: Use local Yarn version + run: echo "$(pwd)/.yarn/releases" >> $GITHUB_PATH - name: Install run: yarn install @@ -162,10 +142,9 @@ jobs: registry-url: 'https://npm.pkg.github.com' # Defaults to the user or organization that owns the workflow file scope: '@phase2' - - - name: Setup Corepack - run: corepack enable + - name: Use local Yarn version + run: echo "$(pwd)/.yarn/releases" >> $GITHUB_PATH - name: Install run: yarn install