From 7f67ff9f34a27a442945e3a7f14881843fd6c257 Mon Sep 17 00:00:00 2001 From: Olutoke Adedamola Date: Thu, 4 Jun 2026 20:05:37 +0100 Subject: [PATCH] ci(release): run release job on Node 20 to support require(ESM) in changesets @changesets/cli@2.31.0 pulls ESM-only human-id@4 via @changesets/write@0.4.0. Node 18 cannot require() an ESM module, so 'changeset version' crashed with ERR_REQUIRE_ESM before the Version Packages PR could be created. Node 20.19+ supports require(ESM). --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a892d00..83d27f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,8 +18,9 @@ jobs: - name: Setup Node.js and pnpm uses: wyvox/action-setup-pnpm@v3 with: - node-version: '18' - + node-version: '20' + pnpm-version: 9 + args: --frozen-lockfile - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1