27 lines
763 B
YAML
27 lines
763 B
YAML
name: "Setup"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
# https://github.com/actions/cache/blob/main/examples.md#node---yarn
|
|
# https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
- name: Get yarn cache directory path
|
|
id: yarn-cache-dir-path
|
|
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
|
|
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
|