2022-01-13 16:41:01 +08:00
|
|
|
name: Setup Node
|
|
|
|
description: Setup Node
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
2023-08-11 20:32:11 +08:00
|
|
|
- uses: actions/setup-node@v3
|
2022-01-13 16:41:01 +08:00
|
|
|
with:
|
|
|
|
node-version: "16"
|
|
|
|
|
|
|
|
- id: yarn-cache-dir-path
|
2022-11-04 09:29:13 +08:00
|
|
|
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
|
2022-01-13 16:41:01 +08:00
|
|
|
shell: bash
|
|
|
|
|
2022-11-04 09:29:13 +08:00
|
|
|
- uses: actions/cache@v3
|
2022-01-13 16:41:01 +08:00
|
|
|
with:
|
|
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
|
|
|
|
- run: yarn install
|
|
|
|
shell: bash
|