Repository navigation
Publish prereleases under the beta tag, and check before publishing - #79
Merged
Merged
Conversation
… publishing npm 11 refuses a bare `npm publish` of a prerelease version. A release marked as a pre-release now publishes with `--tag beta`; any other release publishes with `--tag latest`. Before publishing, the workflow stops if the release tag (without its leading `v`) differs from the package.json version, or if the pre-release setting disagrees with whether the version has a prerelease suffix. It then runs lint, the build, and the Node and browser tests, as CI does. npm is pinned to 11.21.1 instead of the latest. RELEASING.md documents the npm trusted-publisher setup and the release form, and the README links to it. Closes #55 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Stacked on #78 — review and merge that first.
Closes #55.
What changed
npm publishof a prerelease version. A GitHub release marked as a pre-release now publishes with--tag beta; any other release publishes with--tag latest. This usesbetarather than thenextnamed in Publish prereleases under the next tag, and check before publishing #55, by maintainer decision; it matches the existingbetadist-tag.v) differs from thepackage.jsonversion, or if the pre-release setting disagrees with whether the version has a prerelease suffix. It then runs lint, the build, and the Node and browser tests, asci.ymldoes.11.21.1instead ofnpm@latest.RELEASING.mddocuments the npm trusted-publisher setup and how to fill in the GitHub release form, with a README link.Before the first release
An npm admin of
@digitalcredentials/verifier-coremust register this workflow as a trusted publisher on npmjs.com (steps inRELEASING.md). No GitHub secrets are needed.Validation
actionlintonpublish.yml: clean.pnpm run buildandpnpm run test(lint + 1003 Node tests): pass.🤖 Generated with Claude Code