Repository navigation
chore(release): 0.8.0 - #37
Merged
Merged
Conversation
The NPM_TOKEN secret dates from 2020, so it was a classic token, and npm revoked all classic tokens in late 2025. Publish through OIDC instead: the job gets id-token: write and no token. repository.url moves to the https form, which trusted publishing matches against the repo. CLAUDE.md gets a Releasing section, since npm version's postversion push to main is now rejected by the branch ruleset.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Release 0.8.0 with the dependency update from #31, and switch npm publishing from the 2020
NPM_TOKENto trusted publishing (OIDC). npm still serves 0.7.0 from 2022; the 0.7.1 release never reached npm because its tag kept"version": "0.7.0".Closes: no linked issue.
Type of change
Changes
ci: publish to npm with trusted publishingnpm-publish.yml: the publish job getsid-token: write, dropsNODE_AUTH_TOKEN, and disables the package-manager cache, following npm's trusted publishing docs (https://docs.npmjs.com/trusted-publishers). Lint now runs only in the build job it already ran in.package.jsonrepository.urlmoves fromgit@github.com:…togit+https://github.com/ivankristianto/cloudflare-cli-node.git. Trusted publishing checks it against the repo.npm versionrunspostversion: git push, which themainruleset now rejects, so the version bump goes through a PR.chore(release): 0.8.0: version and lockfile, and CHANGELOG[next]becomes[0.8.0] - 2026-11-04with a Security entry.Why the token has to go: it was created 2020-06-15 and never updated, so it's a classic token. npm announced the revocation of all classic tokens in late 2025 (https://github.blog/changelog/2025-10-10-strengthening-npm-security-important-changes-to-authentication-and-token-management).
How to test
npm ci && npm test && npm run linton Node 22.18.0 and 26. Done locally: 16 tests, lint 0 errors.npm pack --dry-runshowscloudflare-cli-node@0.8.0withlib/,bin/cf, README, LICENSE, CHANGELOG, HOWTO.Risk and rollback
cloudflare-cli-node, Settings, Trusted Publisher, GitHub Actions, enter userivankristianto, repositorycloudflare-cli-node, workflownpm-publish.yml, and no environment. npm doesn't validate this when saved. A typo shows up as a failed publish.NPM_TOKENrepo secret and consider "disallow tokens" on the package.cf firewallandcf filtersfail with*.api.deprecatedbecause Cloudflare retired those APIs in favour of Rulesets. This is not a regression.npm deprecate cloudflare-cli-node@0.8.0 "<reason>". npm doesn't allow re-publishing the same version.Checklist
npm testpassesnpm run lintpassesnode bin/cf <command> --helploads for every command touchedCHANGELOG.mdupdated under## [next]for user-facing changes