ci(callbacks): add alpha publish workflow#53
Conversation
Purpose of the change - Add an isolated prerelease publishing path for shared-callbacks integration testing. Previous behavior - The package only published from main through release-please stable releases. Why that was a problem - CA/Core integration work needed an installable shared-callbacks package before it was ready for the public latest tag. - Testing from local links does not cover normal package resolution or npm dist-tag consumption. What the new change accomplishes - Publishes alpha builds from the alpha branch or manual workflow dispatch. - Uses the npm alpha dist-tag so consumers can opt in with @unraid/shared-callbacks@alpha. - Leaves main and release-please stable publishing untouched. How it works - Computes a unique next-minor alpha version in CI unless a base version is supplied manually. - Builds and tests before publishing. - Publishes with provenance and the alpha tag without committing CI-only version mutations.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds a new GitHub Actions workflow that automates alpha prerelease publishing. The workflow supports both manual trigger with optional base version input and automatic trigger on pushes to the ChangesAlpha Release Workflow
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #53 +/- ##
===========================================
- Coverage 100.00% 99.08% -0.92%
===========================================
Files 3 3
Lines 109 109
Branches 30 30
===========================================
- Hits 109 108 -1
- Misses 0 1 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
@unraid/shared-callbacksalphabranch or manual dispatch3.2.0-alpha.<run_number>without committing CI-only version changesalphadist-tag and provenancemainstable release workflow untouchedRollout
alphafrommainso the branch has the workflow.alphafor prerelease testing.pnpm add @unraid/shared-callbacks@alpha.mainfor normal stable release-please publishing.Verification
.github/workflows/publish-alpha.ymlpnpm run buildpnpm test -- --run src/__tests__/server.test.tsSummary by CodeRabbit