Skip to content

chore: prep 5.1.0-beta.1 release and tag prereleases as 'beta' on npm#115

Merged
nawforce merged 1 commit into
mainfrom
chore/beta-release-prep
May 16, 2026
Merged

chore: prep 5.1.0-beta.1 release and tag prereleases as 'beta' on npm#115
nawforce merged 1 commit into
mainfrom
chore/beta-release-prep

Conversation

@kjonescertinia

Copy link
Copy Markdown
Contributor

Summary

  • Bumps jvm/pom.xml from 5.1.0-SNAPSHOT to 5.1.0-beta.1 so the Maven artifact version matches npm/package.json for the upcoming beta release.
  • Updates PublishNPM.yml to detect pre-release versions (semver hyphen) and publish them under the beta dist-tag. Final releases continue to publish as latest.

Why

The v5.0.0-beta.5 publish landed as latest on npm because the workflow always ran npm publish --access public with no --tag. With this change, any version containing a - (e.g. 5.1.0-beta.1, 5.2.0-rc.1) publishes as @beta, leaving latest pointing at the most recent stable release.

Test plan

  • CI (Build workflow) passes — pom version bump and a workflow file edit shouldn't affect build/test outputs.
  • After merge, tag v5.1.0-beta.1, create a GitHub pre-release, then manually dispatch Publish to NPM and Publish to Maven.
  • Verify npm view @apexdevtools/apex-parser dist-tags shows latest unchanged and beta set to 5.1.0-beta.1.
  • Verify Maven Central lists io.github.apex-dev-tools:apex-parser:5.1.0-beta.1.

Bumps jvm/pom.xml to 5.1.0-beta.1 so the Maven artifact version matches
npm/package.json.

Updates PublishNPM.yml to detect pre-release versions (semver hyphen) and
publish them under the 'beta' dist-tag, so beta releases no longer
overwrite 'latest' on npm. Final releases continue to publish as 'latest'.
@nawforce nawforce merged commit 86653c1 into main May 16, 2026
1 check passed
@nawforce nawforce deleted the chore/beta-release-prep branch May 16, 2026 20:49
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