mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2025-12-06 02:30:54 -08:00
31 lines
895 B
YAML
31 lines
895 B
YAML
name: "Setup"
|
|
description: "Yarn cache action"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Corepack enable
|
|
run: corepack enable
|
|
shell: bash
|
|
|
|
# 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 config get cacheFolder)" >> $GITHUB_OUTPUT
|
|
shell: bash
|
|
|
|
- name: Node cache
|
|
id: node-cache
|
|
uses: actions/cache@v4
|
|
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 --immutable
|
|
shell: bash
|