Skip to content

docs(github-ui-setup): reflect publish.yml inlining (PR #372) - #373

Open
martyy-code wants to merge 1 commit into
mainfrom
docs/runbook-inlining
Open

docs(github-ui-setup): reflect publish.yml inlining (PR #372)#373
martyy-code wants to merge 1 commit into
mainfrom
docs/runbook-inlining

Conversation

@martyy-code

Copy link
Copy Markdown
Contributor

Summary

Updates the GitHub UI runbook to reflect the inlined publish steps pattern from PR #372, replacing the obsolete "entrypoint + reusable workflows" guidance.

Why

PR #372 inlined every publish step into publish.yml so the OIDC workflow_ref claim matches the Trusted Publisher filename registered on npmjs.com. With reusable workflows, the OIDC claim pointed to the reusable file, causing npm to surface a misleading E404 (npm/cli #9088).

The runbook still described the entrypoint + reusable pattern, which would mislead anyone following it today.

Changes

  • §5 Trusted Publisher: replace the entrypoint + reusable description with the inlined model. Drop the reference to the Paige Niedringhaus article (the pattern she documents does not work for npm Trusted Publishing in our current scenario).
  • §5.3 verification: drop the line about reusable workflows inheriting OIDC trust.
  • §6 Workflow permissions: clarify that publish.yml's jobs declare id-token: write, not just an entrypoint.
  • §7.2 Code Owners: drop mention of reusable workflows.
  • §8 verification checklist: add an explicit check that _publish-{release,hotfix,canary}.yml are absent from main.

Test plan

  • pnpm turbo type-check passes.
  • pnpm turbo lint passes.
  • Manual review for technical accuracy.

Risk

None. Documentation only.

🤖 Generated with Claude Code

The previous runbook described an entrypoint + reusable workflow
pattern, which was invalidated by PR #372 (inline publish steps
into publish.yml).

Root cause of the refactor:
- npm Trusted Publishing validates the workflow file containing
  the 'pnpm changeset publish' step.
- With reusable workflows, the OIDC workflow_ref claim pointed
  to _publish-{release,hotfix,canary}.yml, never to publish.yml.
- npm surfaced this as E404 (npm/cli #9088).

Updates:
- §5 Trusted Publisher: replace the entrypoint + reusable
  description with the inlined model. Drop the reference to
  Paige Niedringhaus (the pattern she documents does not work
  for npm Trusted Publishing as of 2026-08-03).
- §5.3 verification: drop the line about reusable workflows
  inheriting OIDC trust.
- §6 Workflow permissions: clarify that publish.yml's jobs
  declare id-token: write, not just the entrypoint.
- §7.2 Code Owners: drop mention of reusable workflows.
- §8 verification checklist: add an explicit check that
  _publish-{release,hotfix,canary}.yml are absent from 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