Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions .releaserc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,16 @@ module.exports = {
// Generate release notes
'@semantic-release/release-notes-generator',

// Publish to npm with provenance
// Publish to npm with provenance. package.json's committed version
// stays a placeholder (0.0.0-development) — semantic-release sets
// the real version only in this ephemeral CI checkout before
// `npm publish`, and never commits it back to the repo. No PR, no
// committed version file, ever; the npm registry and git tags are
// the only sources of truth for the release version.
['@semantic-release/npm', { provenance: true }],

// Commit version bump to package.json + package-lock.json back to repo
// Runs in 'prepare' phase AFTER npm bumps package.json, BEFORE GitHub creates the tag
// This ensures the GitHub tarball includes the correct version
['@semantic-release/git', {
assets: ['package.json', 'package-lock.json'],
message: 'chore(release): ${nextRelease.version} [skip ci]'
}],

// Create GitHub release (creates the tag/tarball from the version-bumped commit)

// Create GitHub release directly from HEAD's tree (no version-bump
// commit precedes it)
'@semantic-release/github'
]
};