From b4fd81b2d842ae3eceb2fe849c67a8dad20435d3 Mon Sep 17 00:00:00 2001 From: gagik Date: Mon, 21 Jul 2025 16:48:44 +0200 Subject: [PATCH] chore(ci): push mongosh tag separately during release 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), we will push the mongosh tag separately to ensure it triggers the merge tag workflow --- packages/build/src/npm-packages/publish.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/build/src/npm-packages/publish.ts b/packages/build/src/npm-packages/publish.ts index d7d009355..9c453ccea 100644 --- a/packages/build/src/npm-packages/publish.ts +++ b/packages/build/src/npm-packages/publish.ts @@ -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) {