From aadee0cbf5d872f312601ec637950d45e6c53477 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Tue, 30 Dec 2025 13:49:22 +0700 Subject: [PATCH 1/4] ci: test against multiple node versions --- .github/workflows/main.yml | 11 ++++++----- .github/workflows/release.yml | 8 ++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 48744569..be809d81 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,6 +19,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] + node_version: ["20", "22", "24", "25", "26"] # This workflow contains a single job called "build" # The type of runner that the job will run on runs-on: ${{ matrix.os }} @@ -26,14 +27,14 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 with: cache: "pnpm" - node-version: 20 + node-version: ${{ matrix.node_version }} registry-url: "https://registry.npmjs.org" - name: install dependencies @@ -43,7 +44,7 @@ jobs: run: pnpm build - name: Setup Biome - uses: biomejs/setup-biome@v2 + uses: biomejs/setup-biome@454fa0d884737805f48d7dc236c1761a0ac3cc13 # v2.6.0 with: version: latest - name: Run Biome diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8819a2e8..423c76bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,11 +22,11 @@ jobs: id-token: write pull-requests: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 with: cache: "pnpm" node-version: 20 @@ -43,7 +43,7 @@ jobs: - name: Create Release Pull Request or Publish id: changesets - uses: changesets/action@v1 + uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3 with: # Note: pnpm install after versioning is necessary to refresh lockfile version: pnpm chgset:version From c59a8af06204dd32dda9de954558d9b5c580b74a Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Tue, 30 Dec 2025 13:50:43 +0700 Subject: [PATCH 2/4] ci: node 26 does not exists yet --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be809d81..54f657f9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node_version: ["20", "22", "24", "25", "26"] + node_version: ["20", "22", "24", "25"] # This workflow contains a single job called "build" # The type of runner that the job will run on runs-on: ${{ matrix.os }} From 3e0b4c5fe496b20b0fb208aa6044625758409549 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Tue, 30 Dec 2025 13:52:25 +0700 Subject: [PATCH 3/4] ci: pin Biome to a specific version --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54f657f9..2b3a481d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,7 @@ jobs: - name: Setup Biome uses: biomejs/setup-biome@454fa0d884737805f48d7dc236c1761a0ac3cc13 # v2.6.0 with: - version: latest + version: "2.2.4" - name: Run Biome run: biome ci . From c7190e7b560b8e4067169a60ad7ff4fc9573948f Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Wed, 31 Dec 2025 08:29:23 +0700 Subject: [PATCH 4/4] ref: remove 25 as it's not LTS --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2b3a481d..81d79edc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node_version: ["20", "22", "24", "25"] + node_version: ["20", "22", "24"] # This workflow contains a single job called "build" # The type of runner that the job will run on runs-on: ${{ matrix.os }}