Sdks 4647 Versioning and Publishing flow#34
Conversation
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughAdds Changesets-based release tooling: config and initial changeset, CI checks and a release workflow, docs for the release process, workspace dependency linking for internal packages, a lockstep validation script, and small helper and test adjustments to support coordinated versioning and publishing. Changes
Sequence DiagramsequenceDiagram
actor Developer
participant GH as GitHub Actions
participant Repo as Git Repository
participant CI as Runner (Node/Yarn)
participant Build as Package Build
participant NPM as NPM Registry
Developer->>GH: trigger release (workflow_dispatch)
GH->>Repo: checkout (fetch-depth: 0)
GH->>CI: setup Node, yarn install
CI->>Repo: run `yarn release:version` (changeset version) — update package files
CI->>CI: run `yarn release:check-lockstep` (scripts/check-lockstep.mjs)
CI->>Repo: commit & push version/CHANGELOG files
CI->>Build: run `yarn packages:build`
CI->>NPM: run `yarn release:publish` (changeset publish)
NPM-->>CI: publish response
CI->>Repo: git push --follow-tags
GH-->>Developer: release complete
Estimated Code Review Effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #34 +/- ##
============================================
+ Coverage 57.47% 59.23% +1.75%
- Complexity 0 71 +71
============================================
Files 16 120 +104
Lines 863 9954 +9091
Branches 157 412 +255
============================================
+ Hits 496 5896 +5400
- Misses 326 4004 +3678
- Partials 41 54 +13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add lockstep release tooling with Changesets
Summary
@changesets/cli+@changesets/changelog-githubfor versioning and publishing@ping-identity/*SDK packages always version and publish together@ping-identity/*dependencies from^0.1.0toworkspace:*scripts/check-lockstep.mjs— CI validator that fails if any package version has drifted from the rest.github/workflows/release.yml— manualworkflow_dispatchrelease workflow with npm provenance signingchangeset-checkandlockstep-checkjobs to CI (changeset-check disabled until first alpha release)CONTRIBUTING.mdSummary by CodeRabbit