Skip to content

fix: use pnpm 11 for OIDC publishing + add manual publish trigger#20

Merged
bufo24 merged 2 commits into
mainfrom
fix/pnpm-11-oidc
Jul 7, 2026
Merged

fix: use pnpm 11 for OIDC publishing + add manual publish trigger#20
bufo24 merged 2 commits into
mainfrom
fix/pnpm-11-oidc

Conversation

@bufo24

@bufo24 bufo24 commented Jul 7, 2026

Copy link
Copy Markdown
Member

Problem

With everything else fixed, the publish step still 404s at the npm auth layer:

npm error 404 Not Found - PUT https://registry.npmjs.org/@ambosstech%2fcore

Root cause: OIDC trusted publishing was only added to pnpm in the 11.x line (changelog entries first appear at v11.0.7). pnpm 10.19.0 — which #12/#17 pinned — has no OIDC code path, so it published unauthenticated and npm masked the rejection as a 404. (The 10.19.1-oidc-test tag was a throwaway test build, not the stable feature.)

Fix

  • packageManagerpnpm@11.10.0 (latest; past the now-closed #11513 OIDC-on-pnpm-11 regression). The workflows already read the version from packageManager (no version: pins after ci: single-source the pnpm version via packageManager #17).
  • Verified the committed lockfile installs cleanly under pnpm 11 via pnpm install --frozen-lockfile (CI=true) — same lockfileVersion, no regeneration needed.
  • Added a workflow_dispatch trigger + condition on the publish job so we can run the OIDC publish on demand against the already-pending 0.1.1 versions, without manufacturing new fix: commits.

Context

  • Trusted publisher is configured on npmjs for both packages (confirmed).
  • @ambosstech/core@0.1.1 and @ambosstech/payments@0.1.1 are pending (npm only has 0.0.1); once auth works they publish as-is.

Test plan

After merge, trigger the release-please workflow via workflow_dispatch and confirm the publish job uploads both packages via OIDC.

bufo24 added 2 commits July 7, 2026 12:19
OIDC trusted publishing landed only in pnpm 11.x (v11.0.7+); pnpm
10.19.0 has no OIDC code path, so the publish step ran unauthenticated
and npm returned a masked 404. Bump packageManager to pnpm@11.10.0
(latest, past the closed #11513 OIDC regression). Verified the existing
lockfile installs cleanly under pnpm 11 (--frozen-lockfile, same
lockfileVersion).

Also add a workflow_dispatch trigger so the publish job can be run
on demand against the current package versions, without cutting a new
release each time.
pnpm 11 promotes ignored build scripts from a warning to a hard error
(ERR_PNPM_IGNORED_BUILDS), failing 'pnpm install --frozen-lockfile' in
CI. Declare esbuild (needed by tsx) as an allowed build in
pnpm-workspace.yaml.
@bufo24 bufo24 merged commit c8e179e into main Jul 7, 2026
2 checks passed
@bufo24 bufo24 deleted the fix/pnpm-11-oidc branch July 7, 2026 10:41
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