diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1bb9109..cc71f71 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,12 @@ jobs: with: node-version: 16 cache: yarn + - uses: actions/cache@v3 + id: yarn-cache + with: + path: node_modules + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: ${{ runner.os }}-yarn- - name: Install dependencies run: yarn install --frozen-lockfile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4f2c1db..2cd15a6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,11 +9,6 @@ jobs: with: node-version: 16 cache: yarn - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v3 id: yarn-cache with: @@ -43,7 +38,6 @@ jobs: with: node-version: 16 cache: yarn - - uses: actions/cache@v3 id: yarn-cache with: