From 0d139fcf41c67510974ff2bf2fbe83a3f49ac783 Mon Sep 17 00:00:00 2001 From: Seungho Date: Thu, 1 Aug 2024 01:26:53 +0900 Subject: [PATCH] Build Tool Npm to Yarn --- .github/workflows/ci-client.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-client.yml b/.github/workflows/ci-client.yml index b234d4f9..8f9db2ee 100644 --- a/.github/workflows/ci-client.yml +++ b/.github/workflows/ci-client.yml @@ -33,19 +33,18 @@ jobs: with: node-version: ${{ matrix.node }} + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Cache node modules id: cache-npm uses: actions/cache@v3 - env: - cache-name: cache-node-modules with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- + ${{ runner.os }}-yarn- - name: Install and Build run: |