chore: prepare npm OIDC trusted publishing#824
Merged
Conversation
Add package repository metadata, setup docs, and the intended Changesets workflow as .github/release.oidc.yaml (copy over release.yaml once trusted publishers are configured on npm). Avoids long-lived NPM_TOKEN for publish.
@effect-app/cli
effect-app
@effect-app/eslint-codegen-model
@effect-app/eslint-shared-config
@effect-app/infra
@effect-app/vue
@effect-app/vue-components
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NPM_TOKEN(the root cause of the4.0.0-beta.299E404 publish failure).repositorymetadata on all publishable packages (required for OIDC/provenance matching)..github/release.oidc.yaml(copy →.github/workflows/release.yaml) because the bot cannot push workflow file updates..github/npm-trusted-publishing.md.What the workflow change does (once applied)
permissions.id-token: writeNPM_TOKENfrom the publish step (changesets/actionuses OIDC when token is absent)Exact steps on npm (do this before applying the workflow)
For each package below, open Settings → Trusted Publisher → GitHub Actions:
effect-app@effect-app/infra@effect-app/vue@effect-app/vue-components@effect-app/cli@effect-app/eslint-codegen-model@effect-app/eslint-shared-configFill exactly:
effect-applibsrelease.yaml(filename only,.yamlnot.yml)npm publishSave. npm does not validate on save — mismatches only appear at publish time.
Apply workflow after merge (maintainer, needs
workflowspermission)That push should publish any unpublished versions (e.g.
4.0.0-beta.299).Success log line:
After first successful OIDC publish (optional harden)
NPM_TOKENand revoke old npm automation tokensFull checklist:
.github/npm-trusted-publishing.mdTest plan
release.oidc.yaml→workflows/release.yamland pusheseffect-app@4.0.0-beta.299)NPM_TOKENauth)