Skip to content

SK-2770: publish v1.x releases under the v1 dist-tag to preserve latest as V2#297

Merged
Devesh-Skyflow merged 2 commits intomainfrom
devesh/SK-2770--npm-publish-changes
Apr 23, 2026
Merged

SK-2770: publish v1.x releases under the v1 dist-tag to preserve latest as V2#297
Devesh-Skyflow merged 2 commits intomainfrom
devesh/SK-2770--npm-publish-changes

Conversation

@Devesh-Skyflow
Copy link
Copy Markdown
Collaborator

Problem

Publishing a v1.x patch release via the public release workflow ran
npm publish without an explicit dist-tag. npm defaults to latest,
so every v1 patch silently overwrote the latest pointer away from v2.

Solution

In common-release.yml, read the major version from package.json
(already bumped by bump_version.sh before this step) and branch:

  • Major == 1npm publish --tag v1
  • Major >= 2npm publish (keeps latest on v2)

User impact

Install command Gets
npm install skyflow-node latest v2 release
npm install skyflow-node@v1 latest v1.x patch
npm install skyflow-node@beta beta (unchanged)

No changes to trigger workflows or version-bumping logic.

@github-actions
Copy link
Copy Markdown

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link
Copy Markdown

Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.

@github-actions
Copy link
Copy Markdown

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link
Copy Markdown

Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.

@Devesh-Skyflow Devesh-Skyflow merged commit 344364c into main Apr 23, 2026
5 of 6 checks passed
@Devesh-Skyflow Devesh-Skyflow mentioned this pull request Apr 24, 2026
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