Skip to content

fix: resolve OIDC publish failure in release CI#316

Merged
kimyouknow merged 1 commit into
mainfrom
fix/release-oidc-publish
Feb 10, 2026
Merged

fix: resolve OIDC publish failure in release CI#316
kimyouknow merged 1 commit into
mainfrom
fix/release-oidc-publish

Conversation

@kimyouknow
Copy link
Copy Markdown
Collaborator

Summary

  • npm 10 (Node 22 default) does not support OIDC handshake, causing E404 + "Access token expired" error when publishing @react-simplikit/mobile@0.0.1 (npm/cli#8678)
  • changesets/action's publish option overwrites .npmrc, destroying setup-node's OIDC auth configuration (changesets/action#515)
  • react-simplikit@0.0.47 version bump was lost during project restructuring, leaving a stale CHANGELOG entry

Changes

1. .github/workflows/release.yml — Fix OIDC publish

  • Add npm install -g npm@latest step (npm 10 → 11.x for OIDC support)
  • Remove publish from changesets/action to prevent .npmrc override
  • Add separate "Publish to npm" step with NPM_CONFIG_PROVENANCE: true

2. packages/core/CHANGELOG.md — Remove stale 0.0.47 entry

  • Will be regenerated by changeset flow in the Version PR

3. .changeset/deprecate-browser-hooks.md — Add changeset

  • Patch changeset for browser-specific hooks deprecation (PR refactor: next step #302)
  • On merge, triggers Version PR (0.0.46 → 0.0.47) → merge → OIDC publish

Expected release flow

This PR merge → release.yml triggers
  → npm 11.x installed
  → changesets/action detects changeset → creates Version PR
     (react-simplikit: 0.0.46 → 0.0.47)

Version PR merge → release.yml triggers
  → changesets/action: hasChangesets=false
  → Publish to npm (OIDC auth)
     - react-simplikit@0.0.47
     - @react-simplikit/mobile@0.0.1

Test plan

  • yarn changeset status — react-simplikit patch pending confirmed
  • YAML syntax validation passed
  • yarn build — core + mobile build success
  • CI: npm install -g npm@latest installs npm 11.x
  • Version PR auto-created after merge
  • OIDC publish succeeds after Version PR merge

- Upgrade npm to latest (11.x) for OIDC trusted publishing support
- Separate publish step from changesets/action to preserve OIDC auth
- Remove stale 0.0.47 CHANGELOG entry (will be regenerated by changeset)
- Add deprecation changeset for browser-specific hooks
@github-actions
Copy link
Copy Markdown
Contributor

Size Change: 0 B 🆕

Total Size: 0 B

compressed-size-action

@kimyouknow kimyouknow marked this pull request as ready for review February 10, 2026 13:19
@kimyouknow kimyouknow self-assigned this Feb 10, 2026
@kimyouknow kimyouknow merged commit 5b2eeba into main Feb 10, 2026
10 checks passed
@kimyouknow kimyouknow deleted the fix/release-oidc-publish branch February 10, 2026 13:20
@github-actions github-actions Bot mentioned this pull request Feb 10, 2026
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