Firefox-UI-Fix/.github/actions/node-setup/action.yml
2023-01-24 02:56:28 +09:00

25 lines
654 B
YAML

name: "Setup"
runs:
using: "composite"
steps:
# https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
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