chore(ci): add timestamp to snapshot version for better readability#538
Merged
chore(ci): add timestamp to snapshot version for better readability#538
Conversation
ef48eaa to
275594e
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the snapshot version format for releases by adding a timestamp component and refactoring the workflow to compute the version once at the start.
Changes:
- Created a new composite action
.github/actions/set-snapshot-versionthat generates snapshot versions in the format0.0.0-{short-sha}.{timestamp} - Refactored the release workflow to compute the version once in a dedicated
preparejob and pass it to downstream jobs via outputs - Changed the version format from
0.0.0-{sha}to0.0.0-{short-sha}.{timestamp}for better readability and chronological ordering
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/actions/set-snapshot-version/action.yml |
New composite action that computes snapshot version with 8-character SHA and UTC timestamp in YYYYMMDD-HHMM format |
.github/workflows/release.yml |
Added prepare job to compute version once; updated build-rust and Release jobs to depend on prepare and use its version output; removed global VERSION environment variable |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fengmk2
approved these changes
Feb 5, 2026
Member
|
@hyf0 Commits must have verified signatures. |
275594e to
7241bff
Compare
Version format changes from `0.0.0-{sha}` to `0.0.0-{sha}.{timestamp}`,
making it easier to identify when a build was created.
- Add .github/actions/set-snapshot-version composite action
- Add prepare job to compute version once at workflow start
- Pass version to build-rust and Release jobs via job outputs
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
7241bff to
527c0b6
Compare
Contributor
Author
Fixed. Very weird. I should've sighed by default. I configured this in the rolldown repo before. I thought it was claude's problem, but https://github.com/voidzero-dev/vite-plus/pull/542/commits shows both commits are also sighed. |
Member
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.
Summary
.github/actions/set-snapshot-versioncomposite action to compute snapshot versions0.0.0-{sha}to0.0.0-{sha}.{timestamp}for better readabilitypreparejob to compute version once at workflow start and pass to downstream jobsTest plan
🤖 Generated with Claude Code