renovate[bot] e089e87b84
⬆️ Update actions/cache action to v4 (#588)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 23:16:16 +08:00

19 lines
428 B
YAML

name: Setup Node
description: Setup Node
runs:
using: "composite"
steps:
- uses: actions/setup-node@v4
with:
node-version: "20"
- id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
shell: bash
- uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}