Skip to content

ci(release): run release job on Node 20 to fix changesets ERR_REQUIRE_ESM#123

Merged
Adedamola18 merged 1 commit into
mainfrom
fix-release-node-20
Jun 4, 2026
Merged

ci(release): run release job on Node 20 to fix changesets ERR_REQUIRE_ESM#123
Adedamola18 merged 1 commit into
mainfrom
fix-release-node-20

Conversation

@Adedamola18

Copy link
Copy Markdown
Member

Summary

The Release workflow ran on Node 18, where changeset version crashed with ERR_REQUIRE_ESM: @changesets/cli@2.31.0 requires the ESM-only human-id@4 via a CommonJS require(), which Node 18 doesn't support. This blocked the auto-generated Version Packages PR (e.g. for the pending rootdata_profile changeset).

Bump the release job to Node 20 (≥20.19 supports require(ESM)), and pin pnpm-version: 9 + --frozen-lockfile so CI reads the 9.0 lockfile and installs reproducibly.

Test plan

  • Verified locally on Node 22 (same require(ESM) support as Node 20.19+): loading @changesets/cli runs the require('human-id') path that crashed on Node 18 — exits 0 and detects the pending minor bump.
  • After merge: Release workflow runs changeset version without ERR_REQUIRE_ESM and creates the Version Packages PR.

…angesets

@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).
@changeset-bot

changeset-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7f67ff9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@Adedamola18
Adedamola18 merged commit ff42d0a into main Jun 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant