name: 'Yarn install' description: 'Run yarn install with cache enabled' runs: using: 'composite' steps: - run: corepack enable - uses: seepine/hash-files@v1 id: get-hash with: patterns: | **/package.json **/yarn.lock - uses: actions/cache@v3 with: path: node_modules key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }} - run: echo install start - run: yarn install - run: echo install end