Skip to content

ci: migrate npm publish to OIDC trusted publishing#84

Open
chcmedeiros wants to merge 2 commits into
mainfrom
chore/oidc-publish
Open

ci: migrate npm publish to OIDC trusted publishing#84
chcmedeiros wants to merge 2 commits into
mainfrom
chore/oidc-publish

Conversation

@chcmedeiros

Copy link
Copy Markdown
Collaborator

What

Replace the token-based publish workflow with the reusable _publish-npm.yaml@v7 (OIDC trusted publishing — no NPM_TOKEN). Add .mise.toml.

Details

  • The reusable workflow installs dependencies via a mise ci_postinstall task — .mise.toml defines it as bun install --frozen-lockfile.
  • ci_detect_pm forces pm=bun run so the build step runs bun run build (the package's tsc build) instead of bun build, which is Bun's bundler and would error.
  • Pinned to @v7 (mise-action v3). @v9's mise-action v4 bump leaves the publish step on the mise node's bundled npm 10.9.8 — too old for OIDC trusted publishing (needs ≥ 11.5.1) — which 404s the publish.

Verification

On push/pull_request the workflow runs dry-run (install + build + npm pack --dry-run), so this PR's checks validate the pipeline without publishing.

repository.url already matches Zondax/ledger-js, so no provenance (422) issue is expected. First real publish must be a release tagged after this merges.

Replace the token-based publish workflow with the reusable
_publish-npm.yaml@v7 (OIDC trusted publishing, no NPM_TOKEN). Add
.mise.toml so the reusable workflow installs deps via `ci_postinstall`
(bun) and builds with `bun run` (ci_detect_pm) instead of the `bun build`
bundler.

@v7 (mise-action v3) is used rather than @v9, whose mise-action v4 bump
leaves the publish step on npm 10.x (too old for OIDC, needs >= 11.5.1).
- @ledgerhq/hw-transport 6.31.9 -> 6.35.4 (#83)
- @types/node ^24.3.0 -> ^25.9.3 (#80)

typescript 6 (#81) and eslint 10 (#82) are left out: both need dedicated
migration (TS6 fails the build on rootDir/moduleResolution; eslint 10
conflicts with eslint-config-love's peer range). @types/jest (#79) is
already at 30.0.0 on main.
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