Repository navigation
chore(ci): create tags on release - #28440
Merged
Merged
Conversation
Previously we relied on the git tags being created manually (via GitHub UI) when creating a new release. This led to occasional human errors where wrong commits were tagged when new commits were pushed right after the release, as well as to a delay in creating the tags compared to publishing the release on npm. As previously [agreed][], we're changing the process to have the tags pushed automatically from CI, and then a GitHub release with release notes being created manually afterwards. [agreed]: https://prisma-company.slack.com/archives/C9D3H0P1A/p1761136642568979?thread_ts=1761119656.960289&cid=C9D3H0P1A Furthermore, previously we'd create the tags automatically in the `prisma-engines` repo for all Prisma releases, including dev and integration. However, we did not create tags for dev and integration releases in the main repo, which sometimes was slightly annoying when bisecting or reproducing issues. Now every release will always be tagged, regardless of the release type.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR automates Git tag creation during CI releases to replace the previous manual tagging process via GitHub UI. This change prevents human errors from wrong commit tagging and eliminates delays between npm publishing and tag creation.
- Adds automated tag creation for the main Prisma repository in CI workflows
- Ensures all release types (including dev and integration) are consistently tagged
- Includes logic to skip tag creation if the tag already exists
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/release-latest.yml | Adds automated tag creation step for latest releases |
| .github/workflows/release-ci.yml | Adds automated tag creation step for CI releases |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
size-limit report 📦
|
jacek-prisma
reviewed
Nov 4, 2025
jacek-prisma
reviewed
Nov 4, 2025
jacek-prisma
previously approved these changes
Nov 4, 2025
jacek-prisma
approved these changes
Nov 4, 2025
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.
Previously we relied on the git tags being created manually (via GitHub UI) when creating a new release. This led to occasional human errors where wrong commits were tagged when new commits were pushed right after the release, as well as to a delay in creating the tags compared to publishing the release on npm.
As previously agreed, we're changing the process to have the tags pushed automatically from CI, and then a GitHub release with release notes being created manually afterwards.
Furthermore, previously we'd create the tags automatically in the
prisma-enginesrepo for all Prisma releases, including dev and integration. However, we did not create tags for dev and integration releases in the main repo, which sometimes was slightly annoying when bisecting or reproducing issues. Now every release will always be tagged, regardless of the release type.Demonstration of the tags created from this branch: