Skip to content

Commit 1c98477

Browse files
saeedjamshaidclaude
andcommitted
ci(release): publish beta releases to npm latest dist-tag
Set the beta branch channel to false so beta releases publish to the npm `latest` dist-tag (default channel) instead of a `beta` dist-tag. The tag is applied during `npm publish`, so it works with OIDC trusted publishing (no NPM_TOKEN). Existing 1.1.0-beta.* tag git notes were migrated to include the default channel so the version counter keeps incrementing after the switch (otherwise getLastRelease finds no match and the version resets). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 299498d commit 1c98477

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

release.config.cjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ module.exports = {
88
},
99
{
1010
name: "beta",
11-
prerelease: true
11+
prerelease: true,
12+
// Publish beta releases to the npm `latest` dist-tag (the default channel)
13+
// rather than a `beta` dist-tag, so `npm install @apimatic/cli` resolves to
14+
// the current beta. The dist-tag is applied during `npm publish`, so this
15+
// works with OIDC trusted publishing (no NPM_TOKEN needed).
16+
// NOTE: existing beta tags' git notes were migrated to include the default
17+
// channel so version continuity is preserved (beta.N keeps incrementing).
18+
channel: false
1219
}
1320
],
1421
plugins: [

0 commit comments

Comments
 (0)