Skip to content

fix(ci): align npm dist-tags with GA releases#143

Open
kadel wants to merge 4 commits into
redhat-developer:mainfrom
kadel:fix/publish-npm-dist-tags
Open

fix(ci): align npm dist-tags with GA releases#143
kadel wants to merge 4 commits into
redhat-developer:mainfrom
kadel:fix/publish-npm-dist-tags

Conversation

@kadel

@kadel kadel commented Jul 17, 2026

Copy link
Copy Markdown
Member

Summary

  • Publishing from main now uses --tag next instead of latest
  • The latest dist-tag is reserved for the auto-detected highest semver release branch (e.g., release-1.10), matching the convention used for catalog images and quay tags
  • Older release branches (e.g., release-1.9) continue to use their branch name as the dist-tag

How it works

A new "Detect latest GA branch" step uses git ls-remote to list all release-* branches, sorts them numerically by semver, and picks the highest one. The publish step then:

  • mainnpm publish --tag next
  • Highest release branch → npm publish (defaults to latest)
  • Older release branches → npm publish --tag <branch-name>

After merge

Run the publish workflow once from release-1.10 to reclaim the latest tag from the current 1.11.x pointer.

Test plan

  • Verify workflow YAML syntax is valid
  • Trigger publish from release-1.10 → should publish as latest
  • Trigger publish from main → should publish as next
  • Trigger publish from release-1.9 → should publish as release-1.9

Publishing from main now uses the `next` dist-tag instead of `latest`.
The `latest` tag is reserved for the auto-detected highest semver
release branch (e.g., release-1.10), matching the convention used
for catalog images and quay tags. Older release branches continue
to use their branch name as the dist-tag.

Assisted-by: Claude Code
Comment thread .github/workflows/publish.yaml Outdated
kadel added 2 commits July 20, 2026 12:06
Address PR review feedback: explicitly pass --tag latest for the
highest GA branch and add a separate npm dist-tag for the branch name
so the package is discoverable via both tags.

Assisted-by: Claude Code
@sonarqubecloud

Copy link
Copy Markdown

@kadel
kadel marked this pull request as ready for review July 20, 2026 15:50
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.

3 participants