-
Notifications
You must be signed in to change notification settings - Fork 11
fix: nest semantic-release plugins in release config for OIDC provenance #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…C provenance Co-authored-by: lirantal <316371+lirantal@users.noreply.github.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
## [2.9.3](v2.9.2...v2.9.3) (2026-01-23) ### Bug Fixes * add prepare script to template for Husky initialization ([#33](#33)) ([4ff841d](4ff841d)) * add publishConfig to package.json ([13fd5cf](13fd5cf)) * fix automated release failures from main branch ([#35](#35)) ([4450205](4450205)) * Fix JSON formatting in package.json ([2532548](2532548)) * nest semantic-release plugins in release config for OIDC provenance ([#37](#37)) ([afbcecd](afbcecd)) * npm publishing ([00bd030](00bd030)) * out of sync package lock ([a5400dc](a5400dc)) * update deep deps ([49fdbae](49fdbae))
|
🎉 This PR is included in version 2.9.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
User description
The
pluginsarray was at root level inpackage.jsoninstead of nested under thereleasekey, preventing semantic-release from applying the npm plugin's provenance configuration during OIDC publishing.Changes
pluginsarray from root intorelease.pluginsin package.jsonThe npm plugin provenance config was already present but not being read:
{ "release": { "branches": ["main", "master"], "analyzeCommits": { ... }, "plugins": [ // ... other plugins [ "@semantic-release/npm", { "npmPublish": true, "provenance": true } ] ] } }The workflow file required no changes - OIDC setup from PR #35 (
registry-url,id-token: write, removedNPM_TOKEN) was already correct.Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
PR Type
Bug fix
Description
Move
pluginsarray from root level intorelease.pluginsobjectEnable semantic-release to properly apply npm plugin OIDC provenance configuration
Fix npm authentication failure by ensuring plugins are nested under release key
Diagram Walkthrough
File Walkthrough
package.json
Relocate plugins into release configuration objectpackage.json
pluginsarray from root level intorelease.pluginsnested objectprovenance: trueanalyzeCommits and releaseRules
settings