Skip to content

ci(PP-3449): publish prereleases under npm beta dist-tag - #184

Merged
sergak01 merged 1 commit into
developfrom
pp-3449-npm-beta-tag
Jul 1, 2026
Merged

ci(PP-3449): publish prereleases under npm beta dist-tag#184
sergak01 merged 1 commit into
developfrom
pp-3449-npm-beta-tag

Conversation

@sergak01

@sergak01 sergak01 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Prerelease version tags (e.g. v1.0.0-beta.1) now publish to npm with --tag beta instead of the implicit latest, so a beta build never becomes the default install for existing consumers (npm install without a version, or anyone tracking latest). Testers opt in explicitly via npm install @metricinsights/pp-dev@beta.
  • Final versions (no prerelease suffix, e.g. v1.0.0) are unaffected and still publish as latest.
  • Added workflow_dispatch so a specific tag can be manually re-run through this workflow later (e.g. gh workflow run release.yml --ref v1.0.0-beta.2), once this change has landed on main.

Notes

  • Does not touch release-beta.yml / .releaserc.json (semantic-release) — that flow only bumps versions and creates git tags on develop, it does not publish to npm and pushes using the default GITHUB_TOKEN, which per GitHub Actions' own token-triggered-workflow suppression rule does not cascade into this workflow. This PR only affects the manual, tag-push-triggered production release flow.
  • The three beta tags already pushed by the bot (v0.20.0-beta.1/2/3) predate this change and are intentionally left alone — re-running them via workflow_dispatch would execute the old release.yml as it existed at that commit (always latest), not this fix.

Testing

  • YAML syntax validated
  • Reviewed publish step logic manually against tag naming (v1.0.0latest, v1.0.0-beta.1beta)

Merge Request: origin/pp-3449-npm-beta-tagorigin/develop

Prerelease tags (e.g. v1.0.0-beta.1) now publish with --tag beta instead
of the implicit latest, so a beta version never becomes the default
install for existing consumers. Also add workflow_dispatch so a given
tag can be re-published on demand without needing a new push event.
@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 983246f3-f2a8-4148-9080-337da86731be

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch pp-3449-npm-beta-tag

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sergak01 sergak01 self-assigned this Jul 1, 2026
@sergak01
sergak01 merged commit c8e5bd1 into develop Jul 1, 2026
3 checks passed
@sergak01
sergak01 deleted the pp-3449-npm-beta-tag branch July 1, 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.

1 participant