Skip to content

feat(core,github-action): support snapshot releases#149

Merged
dangreen merged 1 commit into
mainfrom
feat/snapshot-releases
Jun 28, 2026
Merged

feat(core,github-action): support snapshot releases#149
dangreen merged 1 commit into
mainfrom
feat/snapshot-releases

Conversation

@dangreen

Copy link
Copy Markdown
Member

No description provided.

@coveralls

coveralls commented Jun 28, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 28334255078

Coverage decreased (-0.08%) to 59.786%

Details

  • Coverage decreased (-0.08%) from the base build.
  • Patch coverage: 18 uncovered changes across 3 files (30 of 48 lines covered, 62.5%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
packages/core/src/project/monorepo.ts 15 0 0.0%
packages/core/src/releaser.ts 9 7 77.78%
packages/core/src/project/project.ts 19 18 94.74%
Total (4 files) 48 30 62.5%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 731
Covered Lines: 490
Line Coverage: 67.03%
Relevant Branches: 393
Covered Branches: 182
Branch Coverage: 46.31%
Branches in Coverage %: Yes
Coverage Strength: 9.53 hits per line

💛 - Coveralls

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 skipChangelog support to bumps and introduce a revert() step to undo version file updates after publishing (useful for snapshot publishing).
  • Extend the GitHub Action to accept a bump-snapshot input and add a runSnapshotAction() 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.

Comment thread packages/github-action/src/releaser.ts Outdated
Comment thread packages/github-action/oxlint.config.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Comment thread packages/github-action/src/releaser.ts
Comment thread packages/core/src/project/project.ts
Comment thread packages/core/src/project/project.ts
@dangreen dangreen merged commit 11ed7de into main Jun 28, 2026
7 checks passed
@dangreen dangreen deleted the feat/snapshot-releases branch June 28, 2026 21:09
@github-actions github-actions Bot mentioned this pull request Jun 28, 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.

3 participants