Chore: Fix yarn install error & bump actions

This commit is contained in:
alstjr7375 2024-11-29 00:08:38 +09:00
parent 8c845b7e97
commit 1ba1f91a71
3 changed files with 11 additions and 6 deletions

View file

@ -1,18 +1,23 @@
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 cache dir)" >> $GITHUB_OUTPUT
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
shell: bash
- name: Node cache
id: node-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
@ -22,5 +27,5 @@ runs:
${{ runner.os }}-node-
- name: Package Install
run: yarn install
run: yarn install --immutable
shell: bash

View file

@ -21,7 +21,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/node-setup

View file

@ -7,7 +7,7 @@ jobs:
sync-branches:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
@ -52,7 +52,7 @@ jobs:
name: "ESR-Lepton-Proton-Style"
branch: "proton-style"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}