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:
|
2023-09-05 10:49:09 +08:00
|
|
|
node-version: "18"
|
2022-01-13 16:41:01 +08:00
|
|
|
|
|
|
|
- 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
|