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" name: "Setup"
description: "Yarn cache action"
runs: runs:
using: "composite" using: "composite"
steps: steps:
- name: Corepack enable
run: corepack enable
shell: bash
# https://github.com/actions/cache/blob/main/examples.md#node---yarn # 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/ # https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
- name: Get yarn cache directory path - name: Get yarn cache directory path
id: yarn-cache-dir-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 shell: bash
- name: Node cache - name: Node cache
id: node-cache id: node-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: | path: |
${{ steps.yarn-cache-dir-path.outputs.dir }} ${{ steps.yarn-cache-dir-path.outputs.dir }}
@ -22,5 +27,5 @@ runs:
${{ runner.os }}-node- ${{ runner.os }}-node-
- name: Package Install - name: Package Install
run: yarn install run: yarn install --immutable
shell: bash shell: bash

View file

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

View file

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