Skip to content

Support pre-release publishing in npm-publish workflow#1464

Merged
minggangw merged 3 commits intoRobotWebTools:developfrom
minggangw:fix-1459-1
Apr 1, 2026
Merged

Support pre-release publishing in npm-publish workflow#1464
minggangw merged 3 commits intoRobotWebTools:developfrom
minggangw:fix-1459-1

Conversation

@minggangw
Copy link
Copy Markdown
Member

Add automatic dist-tag detection to the publish step. npm requires --tag when publishing pre-release versions to prevent them from becoming the default latest on the registry.

The new Determine dist-tag step reads the version from package.json and extracts the pre-release label (e.g. alpha, beta, rc) if present, otherwise defaults to latest. This tag is passed to npm publish --tag.

Examples:

  • 1.9.0-alpha.0--tag alpha
  • 1.9.0-beta.1--tag beta
  • 1.9.0-rc.0--tag rc
  • 1.9.0--tag latest

Fix: #1459

Loading
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.

Enable npm publishing via GitHub Actions

2 participants