Skip to content

chore(ci): create tags on release - #28440

Merged
aqrln merged 5 commits into
mainfrom
integration/release-tags
Nov 4, 2025
Merged

aqrln merged 5 commits into
mainfrom
integration/release-tags

Conversation

@aqrln

@aqrln aqrln commented Nov 4, 2025 •

Copy link
Copy Markdown
Member

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-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.


Demonstration of the tags created from this branch:

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.
@aqrln aqrln added this to the 6.19.0 milestone Nov 4, 2025
Copilot AI review requested due to automatic review settings November 4, 2025 15:09

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 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.

Comment thread .github/workflows/release-latest.yml Resolved
@github-actions

github-actions Bot commented Nov 4, 2025 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/client/runtime/library.js 197.77 KB (0%)
packages/client/runtime/library.d.ts 126.71 KB (0%)
packages/client/runtime/binary.js 658.35 KB (0%)
packages/client/runtime/binary.d.ts 26 B (0%)
packages/client/runtime/edge.js 166.66 KB (0%)
packages/client/runtime/edge-esm.js 166.13 KB (0%)
packages/client/runtime/wasm-engine-edge.js 128.78 KB (0%)
packages/client/runtime/index-browser.js 34.5 KB (0%)
packages/client/runtime/index-browser.d.ts 11.64 KB (0%)
packages/cli/build/index.js 2.68 MB (0%)
packages/client/prisma-client-0.0.0.tgz 25.95 MB (0%)
packages/cli/prisma-0.0.0.tgz 16.8 MB (0%)
packages/bundle-size/da-workers-libsql/output.tgz 925.82 KB (0%)
packages/bundle-size/da-workers-neon/output.tgz 1000.3 KB (0%)
packages/bundle-size/da-workers-pg/output.tgz 999.49 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 942.57 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 907.57 KB (0%)

Comment thread .github/workflows/release-ci.yml Resolved
jacek-prisma
jacek-prisma previously approved these changes Nov 4, 2025
@aqrln
aqrln merged commit d4ec055 into main Nov 4, 2025
@aqrln
aqrln deleted the integration/release-tags branch November 4, 2025 18:19
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