Skip to content

Trigger npm-publish on prerelease tags#1501

Merged
minggangw merged 1 commit intoRobotWebTools:developfrom
minggangw:fix-1500
May 6, 2026
Merged

Trigger npm-publish on prerelease tags#1501
minggangw merged 1 commit intoRobotWebTools:developfrom
minggangw:fix-1500

Conversation

@minggangw
Copy link
Copy Markdown
Member

Commit e54a991 (#1490) tightened the tag filter from '*' to '[0-9]+.[0-9]+.[0-9]+', which only matches plain MAJOR.MINOR.PATCH tags. Prerelease tags such as 2.0.0-beta.0 no longer trigger the workflow, even though 1.9.0-alpha.0 published successfully under the previous pattern.

Restore prerelease support by adding a second pattern '[0-9]+.[0-9]+.[0-9]+-*' alongside the existing one, so tags like 2.0.0-beta.0, 1.9.0-alpha.0, and 2.0.0-rc.1 trigger the workflow while unrelated tags (e.g. docs-*) remain excluded.

Fix: #1500

Copilot AI review requested due to automatic review settings May 6, 2026 07:51
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Restores npm publish automation for SemVer prerelease tags by expanding the npm-publish workflow tag trigger so prerelease tags (e.g. 2.0.0-beta.0) once again run the publish pipeline, addressing #1500.

Changes:

  • Add an additional tag pattern to on.push.tags to include prerelease tags alongside plain MAJOR.MINOR.PATCH tags.
  • Document the intended tag formats directly in the workflow for clarity.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@minggangw minggangw merged commit 500efad into RobotWebTools:develop May 6, 2026
26 of 27 checks passed
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 85.864%. remained the same — minggangw:fix-1500 into RobotWebTools:develop

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.

Trigger npm-publish on prerelease tags

3 participants