From 89f3f2021e1ed77c4e6cf4509ffeaf00f168a35a Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Sun, 15 Nov 2026 11:23:59 +0900 Subject: [PATCH] ci: fix yarn cache and replace deprecated actions The `Get yarn cache` step ran `yarn cache dir`, a Yarn 1 command. This repo is on Yarn 4 (`packageManager: yarn@4.1.1`, `yarnPath` in `.yarnrc.yml`), so the command exits with a usage error and its stderr becomes the cache path: actions/cache@v4 path: Unknown Syntax Error: Command not found Cache not found for input keys: Linux-yarn-1087... Post Run actions/cache@v4 Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved. The cache therefore never restored and never saved in any of the four jobs that declare it. Use `yarn config get cacheFolder` instead, which is the Yarn 4 equivalent. The same line used `::set-output::`, which GitHub has deprecated and plans to disable, so it moves to `$GITHUB_OUTPUT`. Also bump the actions that GitHub is force-running on Node 24: checkout@v2 -> v5, setup-node@v1 -> v5, setup-java@v1 -> v5. setup-java v2+ requires an explicit `distribution`; `temurin` matches the `adoptopenjdk-17.0.10+7` in `.tool-versions`. Finally, rename the lint step from "ESLint Checks" to "Biome Checks" -- it runs `yarn lint`, which is Biome. The job name is unchanged, so the `lint (22)` status check keeps its name. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/ci.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a75c25ae..2fc30df5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,20 +13,20 @@ jobs: matrix: node-version: [22] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} - name: Get yarn cache id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT" - uses: actions/cache@v4 with: path: ${{ steps.yarn-cache.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - name: Install Dependencies run: yarn - - name: ESLint Checks + - name: Biome Checks run: yarn lint tsc: runs-on: ubuntu-latest @@ -34,13 +34,13 @@ jobs: matrix: node-version: [22] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} - name: Get yarn cache id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT" - uses: actions/cache@v4 with: path: ${{ steps.yarn-cache.outputs.dir }} @@ -55,16 +55,17 @@ jobs: matrix: node-version: [22] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v5 with: + distribution: "temurin" java-version: "17" - name: Get yarn cache id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT" - uses: actions/cache@v4 with: path: ${{ steps.yarn-cache.outputs.dir }} @@ -80,13 +81,13 @@ jobs: node-version: [22] arch: ["NewArch", "OldArch"] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} - name: Get yarn cache id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT" - uses: actions/cache@v4 with: path: ${{ steps.yarn-cache.outputs.dir }}