Skip to content

ci: Route npm pre-releases to the 'beta' dist-tag#18

Merged
nawforce merged 1 commit into
mainfrom
6-followup-npm-publish-prerelease-tag
May 17, 2026
Merged

ci: Route npm pre-releases to the 'beta' dist-tag#18
nawforce merged 1 commit into
mainfrom
6-followup-npm-publish-prerelease-tag

Conversation

@kjonescertinia

Copy link
Copy Markdown
Contributor

Ports the version-aware dist-tag logic from apex-parser/.github/workflows/PublishNPM.yml so that publishing 2.0.0-beta.1 doesn't clobber the npm latest tag.

Behaviour

  • Version contains - (semver pre-release) → npm publish --access public --tag beta
  • Otherwise → npm publish --access public (defaults to latest)

Means a future stable 2.0.0 release needs no workflow change to flip back.

Test plan

  • Dry-run is implicit in the next 2.0.0-beta.1 release — verify on npmjs.com that latest still points at 1.x and beta points at 2.0.0-beta.1 after the publish workflow runs.

Mirrors the auto-detection in apex-parser's PublishNPM.yml: if the
version contains a '-' (semver pre-release), publish under `--tag beta`
so `npm install @apexdevtools/vf-parser` keeps resolving to the latest
stable rather than picking up `2.0.0-beta.1`. Stable versions still
publish as `latest`.
@nawforce
nawforce merged commit bbb412e into main May 17, 2026
1 check passed
@nawforce
nawforce deleted the 6-followup-npm-publish-prerelease-tag branch May 17, 2026 18:39
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.

2 participants