diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4c89d77..6774fc31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,3 +56,14 @@ jobs: publish: pnpm run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Changesets shells out to `npm info` (there is no pnpm equivalent it + # can use) to determine what is already published. npm ≥ 11 checks the + # root package.json's "devEngines" on every command and errors with + # EBADDEVENGINES because we require pnpm as the package manager, which + # fails the publish before it starts. Passing force downgrades that + # check to a warning; the actual publishing still runs through + # `pnpm publish`. Changesets v3 fixes this properly by running + # `pnpm info` when pnpm is detected, but it needs changesets/action v2 + # to go with it and both are prereleases for now — remove this once we + # upgrade to those. + npm_config_force: true