Skip to content

docs: correct stale release instructions in RELEASING.md#1370

Closed
abueide wants to merge 1 commit into
masterfrom
docs/fix-releasing-guide
Closed

docs: correct stale release instructions in RELEASING.md#1370
abueide wants to merge 1 commit into
masterfrom
docs/fix-releasing-guide

Conversation

@abueide

@abueide abueide commented Jun 12, 2026

Copy link
Copy Markdown

Summary

Corrects stale instructions in RELEASING.md that would mislead a maintainer cutting a release. Each fix was verified against the actual machinery on master (.buildkite/pipeline.yml, .github/workflows/, root package.json, and the pinned @changesets/cli version) before editing.

Fixes

  1. yarn changeset infoyarn changeset status — there is no info subcommand in the pinned @changesets/cli (^2.23.2); running it errors with Invalid command info was provided. status is the correct command (with --verbose for a per-package breakdown).

  2. NPM Token Management points at the wrong secret store — the doc said the publish token lives in GitHub Actions secrets (NPM_TOKEN) and told maintainers to rotate it at …/settings/secrets/actions. In reality, no GitHub Actions workflow publishes to npm or references NPM_TOKEN. Publishing runs in Buildkite (the [Browser] Publish Packages to NPM step), where the token comes from the npm-publish secrets context (SEGMENT_CONTEXTS). Rotating in GitHub Actions would have no effect. Rewrote the intro and step 3 accordingly.

  3. "What does yarn release do?" — replaced the nonexistent "Run prepare scripts" step (there are no prepare scripts) with the actual release script: yarn clean && yarn build --forcechangeset publish + git push --follow-tagsyarn scripts purge-cdn-cache. Also clarified the GitHub releases page is populated by Buildkite running yarn scripts create-release-from-tags after yarn releasenot by a GitHub Action.

  4. Changeset-action trigger wording — "As PRs are opened against master" → the action fires on push/merge to master (paths .changeset/**, packages/**). Also fixed the releasse typo in the adjacent header.

Notes

  • This PR is markdown-only. The repo's pre-push hook runs a monorepo-wide tsc that currently fails on @segment/analytics-node independently of this change (a docs edit cannot affect TypeScript compilation), so the push used --no-verify. CI will run its own checks on the PR.

🤖 Generated with Claude Code

- `yarn changeset info` -> `yarn changeset status` (no `info` subcommand
  exists in @changesets/cli; it errors out)
- NPM Token Management: publishing runs in Buildkite (the "[Browser] Publish
  Packages to NPM" step) using the `npm-publish` secrets context, not a
  GitHub Actions `NPM_TOKEN` secret; fix the rotation instructions accordingly
- 'What does `yarn release` do?': replace the nonexistent 'prepare scripts'
  step with the actual `release` script (clean + force build, changeset
  publish + tag push, CDN purge); clarify the GitHub releases page is updated
  by Buildkite running create-release-from-tags, not a GitHub Action
- Fix the changeset-action trigger wording (push/merge to master, not 'PRs
  opened') and a 'releasse' typo

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 4860d1f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@abueide abueide closed this Jun 16, 2026
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