Skip to content

Remove npm auth handling in favor of docs - #695

Merged
bluwy merged 9 commits into
mainfrom
set-up-npm-auth-docs
Jul 24, 2026
Merged

Remove npm auth handling in favor of docs#695
bluwy merged 9 commits into
mainfrom
set-up-npm-auth-docs

Conversation

@changeset-bot

changeset-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5695dfa

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

Comment thread docs/set-up-npm-auth.md
@bluwy bluwy changed the title Add docs for npm auth setup Remove npm auth handling in favor of docs Jul 23, 2026
Comment thread src/index.ts
Comment thread docs/set-up-npm-auth.md Outdated
Comment thread README.md Outdated
Comment thread docs/set-up-npm-auth.md
@bluwy
bluwy added this pull request to the merge queue Jul 24, 2026
Merged via the queue into main with commit 469993c Jul 24, 2026
7 checks passed
@bluwy
bluwy deleted the set-up-npm-auth-docs branch July 24, 2026 15:25
DaYePython added a commit to DaYePython/lanhu-context that referenced this pull request Aug 14, 2026
v2 removed automatic .npmrc creation from NPM_TOKEN (changesets/action#695);
token auth now goes through setup-node's registry-url + NODE_AUTH_TOKEN.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
arshad-shah added a commit to arshad-shah/extforge that referenced this pull request Sep 1, 2026
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 <arshad.shah@hmhco.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment