Skip to content

grant id-token write to release workflow#7

Merged
fabracht merged 1 commit intomainfrom
fix/release-workflow-id-token
Apr 25, 2026
Merged

grant id-token write to release workflow#7
fabracht merged 1 commit intomainfrom
fix/release-workflow-id-token

Conversation

@fabracht
Copy link
Copy Markdown
Contributor

Summary

The Publish to npm step in release.yml failed on the v0.4.0 tag with:

npm error Provenance generation in GitHub Actions requires "write" access to the "id-token" permission

The publish command uses --provenance, which signs the published tarball with an OIDC token issued by GitHub Actions. That requires id-token: write on the workflow's permissions block. Adding it.

Test plan

  • Workflow syntax unchanged otherwise; only the permissions block grows by one line
  • Re-tag v0.4.0 after merge to trigger a fresh run

Notes

Nothing was published to npm in the failed run — the error came before the upload, so the 0.4.0 version slot is still available.

@fabracht fabracht merged commit 5894b93 into main Apr 25, 2026
4 checks passed
@fabracht fabracht deleted the fix/release-workflow-id-token branch April 25, 2026 23:03
@fabracht fabracht mentioned this pull request Apr 25, 2026
3 tasks
fabracht added a commit that referenced this pull request Apr 25, 2026
## Summary

Cuts `0.4.1` — a republish of `0.4.0` with no source changes. The
`0.4.0` tag fired the release workflow but the npm publish step failed
before uploading because `--provenance` requires `id-token: write`
(fixed in #7). Bumping to `0.4.1` to avoid mutating the existing
`v0.4.0` tag.

## Test plan

- [x] `npm run check`
- [x] `node scripts/extract-changelog.mjs 0.4.1` produces the expected
release notes
- [x] `package.json` version is `0.4.1` to match the upcoming `v0.4.1`
tag

## After merge

I'll tag `v0.4.1` at the merge commit and push, which retriggers the
publish workflow.
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