GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove GITHUB_TOKEN env var support by bluwy · Pull Request #674 · changesets/action

Conversation

@bluwy

@bluwy bluwy commented Jun 25, 2026

Copy link
Copy Markdown
Member

This aligns with the behaviour with the other sub-actions, but with an error if the old pattern is still used.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bluwy
Remove GITHUB_TOKEN env var support
6f1dfae
@changeset-bot

changeset-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6f1dfae

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@changesets/action Major

Not sure what this means? Click here to learn what changesets are.

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Andarist
Andarist approved these changes Jun 29, 2026
View reviewed changes
Comment thread src/index.ts
core.setFailed("Please add the GITHUB_TOKEN to the changesets action");
return;
const githubToken = getRequiredInput("github-token");
if (process.env.GITHUB_TOKEN && process.env.GITHUB_TOKEN !== githubToken) {

@Andarist Andarist Jun 29, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we have this "they have to match if both are specified" rule - shouldn't we kinda also enforce that in other subactions that use github-token?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@bluwy bluwy Jun 30, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is more for compat to push migration, so eventually in the next major we can remove this and we don't have to mind about GITHUB_TOKEN anymore.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bluwy
bluwy added this pull request to the merge queue Jun 30, 2026
Merged via the queue into main with commit 164652b Jun 30, 2026
7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bluwy
bluwy deleted the no-github-token-env-var branch June 30, 2026 00:22
@changesets-org-version-bot changesets-org-version-bot Bot mentioned this pull request Jun 30, 2026
Version Packages (next) #677
Merged
@changesets-org-version-bot changesets-org-version-bot Bot mentioned this pull request Aug 11, 2026
Version Packages #715
Merged
@auto-maintain auto-maintain Bot mentioned this pull request Aug 15, 2026
build(deps): bump changesets/action from 1.7.0 to 2.0.0 vercel-labs/just-bash#371
Closed
@itwillbeoptimal itwillbeoptimal mentioned this pull request Aug 16, 2026
chore: @changesets/cli v3 버전 업 JECT-Study/JECT-Design-System#610
Merged
8 of 9 tasks
This was referenced Aug 17, 2026
Bump changesets/action from 1 to 2 in the github-actions group pkallos/winston-firehose#50
Closed
migrate release workflow to changesets/action v2 pkallos/winston-firehose#51
Merged
@arshad-shah arshad-shah mentioned this pull request Sep 1, 2026
ci(release): upgrade changesets/action to v2.1.1 arshad-shah/extforge#86
Merged
6 of 7 tasks
arshad-shah added a commit to arshad-shah/extforge that referenced this pull request Sep 1, 2026
@arshad-shah Arshad shah @claude
ci(release): upgrade changesets/action to v2.1.1 (#86)
668514b
The 1.0.0 and 1.1.0 releases published to npm but created no git tag and
no GitHub release, while the workflow reported success.

changesets/action v1 detects what was published by regex-matching
`changeset publish` stdout for `New tag: <pkg>@<version>`. #77 upgraded
@changesets/cli to v3, whose clack-style output no longer prints that
line, so the action concluded nothing had been published and skipped
both the tag push and the release creation without failing. Tags were
created on the runner and discarded with it — which is why
`git ls-remote --tags` still stops at 0.6.0.

Upstream replaced stdout parsing with a CHANGESETS_OUTPUT file in v2
(changesets/action#678) and v2 now rejects the CLI v2/action v1 mismatch
outright (changesets/action#699).

v2 renamed every input, so this is not a bare SHA bump:
version -> version-script, publish -> publish-script,
commit -> commit-message, title -> pr-title.

Both env vars are dropped. GITHUB_TOKEN is no longer read from the
environment (changesets/action#674); the `github-token` input defaults to
`github.token`, which is what was being passed. NPM_TOKEN is no longer
used to write an .npmrc (changesets/action#695) — publishing already goes
through OIDC trusted publishing, confirmed by the SLSA provenance
attestation on the published 1.1.0 tarball.

v2 pushes commits and tags through the GitHub API rather than the git
CLI, so `persist-credentials: false` stays safe and tags are signed with
GitHub's GPG key.


Claude-Session: https://claude.ai/code/session_01AZSFjNFjuoeXUjuFkA6Cha

Co-authored-by: Arshad shah <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
@greydragon888 greydragon888 mentioned this pull request Sep 6, 2026
ci(deps): bump changesets/action from 1.9.0 to 2.1.1 greydragon888/real-router#1890
Closed
@ChessMess ChessMess mentioned this pull request Sep 9, 2026
chore(deps): bump changesets/action from 1.9.0 to 2.1.0 in the github-actions group ChessMess/UltimateDarkTower#92
Closed
@rtorcato-bot rtorcato-bot mentioned this pull request Oct 6, 2026
ci(deps): bump changesets/action to v2 and @changesets/cli to v3 rtorcato/react-common#197
Merged
rtorcato-bot added a commit to rtorcato/react-common that referenced this pull request Oct 8, 2026
@rtorcato-bot
ci(deps): bump changesets/action to v2 and @changesets/cli to v3 (#197)
316bbbe
🤖 *Automated — `@Megatron` 🐝 (Buzz agent) via ai-loop.*

This replaces Dependabot #168 (`changesets/action` v1 → v2). #168 only
changes the action ref, and with v2's renamed inputs **publishing would
silently stop**. Once this merges, #168 can be closed (left to Fizz).

**Stacked on #192**, which adds `.github/workflows/release.yml`, so the
base branch is `chore/repo-tooling-v5-190`. Merge #192 first. GitHub
then retargets this PR to `main` and CI runs on it.

**Release config.** This changes how `release.yml` versions and
publishes, so it needs owner sign-off.

## Changes
- **`release.yml`: `changesets/action@v1` → `@v2`**, with the v2 input
names (checked against v2's `action.yml` and the v2.0.0 release notes):
- `version` → `version-script`, `publish` → `publish-script`, `commit` →
`commit-message`, `title` → `pr-title`. v2 ignores the old names, so
without this the publish step never ran.
- `github-token: ${{ secrets.RELEASE_TOKEN || secrets.GITHUB_TOKEN }}`.
v2 no longer reads the `GITHUB_TOKEN` env (changesets/action#674).
Without this, `RELEASE_TOKEN` is silently replaced by the default token,
which can't push the "Version Packages" PR to a protected `main`.
- **`@changesets/cli` 2.31.1 → ^3.0.3.** Action v2 refuses to run on CLI
v2 (changesets/action#699). Action v1 can't detect what CLI v3
published, so the two have to land together. I took the CLI bump out of
#196 for that reason.

## Behaviour changes to know about (v2 / CLI 3 defaults, not changed
here)
- Release commits and tags are now pushed **through the GitHub API**
(`push-with-git-cli: false`). They are signed by GitHub and attributed
to the token's owner.
- CLI 3: `changeset version` exits 1 when there are no changesets. The
action only runs it when changesets exist. Private packages are no
longer versioned by default, and `@rtorcato/react-common-docs` is
private and already in `ignore`.
- I checked `.changeset/config.json` and the scripts for removed CLI 3
features (`changeset tag`, `--sinceMaster`, `prettier`). None are used.

## Verification (local)
- `pnpm install --frozen-lockfile`, `pnpm verify` (49 + 178 tests) and
`pnpm build` pass.
- `changeset status` and a real `pnpm version-packages` run on CLI 3.0.3
(reverted afterwards): the 3 pending changesets bump
`@rtorcato/shadcn-ui` by a patch, and the docs package is left alone.
- I couldn't exercise the action itself locally. The first `gh workflow
run release.yml` after merge is the real test.

---------

Co-authored-by: Woz (rtorcato-bot) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Andarist Andarist Andarist approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@bluwy @Andarist
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.