diff --git a/action.yml b/action.yml index e4fb213..f04ff1f 100644 --- a/action.yml +++ b/action.yml @@ -11,3 +11,13 @@ runs: - name: Install Yarn shell: bash run: curl -fsSL https://repo.yarnpkg.com/install | bash + - name: Get Yarn cache directory path + id: yarn-cache-dir-path + shell: bash + run: echo "dir=$(yarn config get globalFolder)" >> $GITHUB_OUTPUT + - uses: actions/cache@v5 + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn-