mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2026-01-07 09:43:13 -08:00
Clean: CI - Setup action separated
This commit is contained in:
parent
47bb1e49fe
commit
64c453b505
3 changed files with 34 additions and 17 deletions
29
.github/actions/node-setup/action.yml
vendored
Normal file
29
.github/actions/node-setup/action.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: "Setup"
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# 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)"
|
||||
|
||||
- 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-${{ hashFiles('**/yarn.lock') }
|
||||
${{ runner.os }}-node-
|
||||
|
||||
- name: Package Install
|
||||
if: steps.node-cache.outputs.cache-hit != 'true'
|
||||
run: yarn install
|
||||
shell: bash
|
||||
Loading…
Add table
Add a link
Reference in a new issue