[WIP] Fix automated release failures from main branch #35
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.
Fix automated release with OIDC provenance publishing
The semantic-release workflow was failing due to invalid npm token. The npm registry has been configured with trusted publishing using OIDC, requiring updates to support provenance-based publishing.
Changes Completed:
.github/workflows/main.ymlto add OIDC permissions and configure provenanceid-token: writepermission for OIDC authenticationcontents: write,issues: write,pull-requests: writepermissions for semantic-releaseregistry-url: 'https://registry.npmjs.org'in setup-node actionpackage.jsonto configure semantic-release npm plugin with provenance optionprovenance: truein @semantic-release/npm pluginnpmPublish: truefor clarityHow This Fixes the Issue:
id-token: writepermission allows GitHub Actions to generate OIDC tokens that npm trustsprovenance: truesetting enables npm to verify package authenticity via the OIDC flowWhen semantic-release runs on the main branch, it will now use GitHub's OIDC provider to authenticate with npm and publish with provenance attestations.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.