Skip to content

chore(ci): push mongosh tag separately during release #2508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/build/src/npm-packages/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ export class PackagePublisher {
if (!mongoshVersion) {
throw new Error('mongosh package not found');
}

if (!this.config.isDryRun) {
// Push the tag separately for mongosh to trigger the merge-release-tag.yml workflow
// Since GitHub Actions only runs create tag workflows when no more than 3 tags are created.
// https://docs.github.com/en/actions/reference/events-that-trigger-workflows#create
this.spawnSync(
'git',
['push', 'origin', `refs/tags/mongosh@${mongoshVersion}`],
commandOptions
);
}
}

if (!this.config.isDryRun) {
Expand Down
Loading