name: "Setup" runs: using: "composite" steps: # https://github.com/actions/cache/blob/main/examples.md#node---yarn - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" shell: bash - name: Node cache id: node-cache uses: actions/cache@v3 with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} "**/node_modules" key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-node- - name: Package Install run: yarn install shell: bash