feat(core,github-action): support snapshot releases#149
Merged
Conversation
Coverage Report for CI Build 28334255078Coverage decreased (-0.08%) to 59.786%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds “snapshot release” support across the core releaser/project logic and the GitHub Action wrapper, enabling timestamp-suffixed prerelease versions (e.g., -snapshot.YYYYMMDDHHMMSS) and a workflow that publishes then reverts version changes.
Changes:
- Add snapshot prerelease identifiers (with timestamp) and supporting semver bump behavior in core utilities/project version calculation.
- Add
skipChangelogsupport to bumps and introduce arevert()step to undo version file updates after publishing (useful for snapshot publishing). - Extend the GitHub Action to accept a
bump-snapshotinput and add arunSnapshotAction()flow.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/github-action/src/releaser.ts | Adds a snapshot publishing action flow (bump → publish → revert). |
| packages/github-action/src/options.ts | Adds bump-snapshot input wiring into bump options. |
| packages/github-action/oxlint.config.ts | Adjusts lint rules to accommodate new typing/casting usage. |
| packages/core/src/utils.ts | Introduces snapshot timestamp and prerelease identifier helpers used during version calculation. |
| packages/core/src/releaser.ts | Adds a revert() step to the releaser chain to undo version updates. |
| packages/core/src/releaser.spec.ts | Adds a test validating Releaser.revert() behavior. |
| packages/core/src/project/project.types.ts | Extends bump options with snapshot/skipChangelog and adds revert options typing. |
| packages/core/src/project/project.ts | Implements snapshot-aware getNextVersion, skipChangelog bumping, and revert() for version updates. |
| packages/core/src/project/packageJson.spec.ts | Adds snapshot version tests and verifies skipChangelog behavior. |
| packages/core/src/project/monorepo.types.ts | Propagates snapshot/skipChangelog options through monorepo bump option typing. |
| packages/core/src/project/monorepo.ts | Adds monorepo-aware revert() behavior for root and child projects. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
279136d to
4214f44
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.