Skip to content

Commit 9c6a852

Browse files
authored
chore(ci): remove redundant version tag push (#2399)
When releasing we try to push a tag to `vx.x.x`. This does not fit in our current flow where this is the tag which triggered the release job in the first place, so this tag will always already exist and not get created.
1 parent 2b9fed0 commit 9c6a852

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

packages/build/src/npm-packages/publish.spec.ts

-7
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,6 @@ describe('PackagePublisher', function () {
140140
]);
141141
}
142142

143-
expect(spawnSync).calledWith('git', [
144-
'tag',
145-
'-a',
146-
`v${mongoshVersion}`,
147-
'-m',
148-
`v${mongoshVersion}`,
149-
]);
150143
expect(spawnSync).calledWith('git', ['push', '--tags']);
151144
});
152145

packages/build/src/npm-packages/publish.ts

-13
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,6 @@ export class PackagePublisher {
111111
if (!mongoshVersion) {
112112
throw new Error('mongosh package not found');
113113
}
114-
115-
const newVersionTag = `v${mongoshVersion}`;
116-
117-
if (!this.existsTag(newVersionTag)) {
118-
console.info(`Creating v${mongoshVersion} tag...`);
119-
this.spawnSync(
120-
'git',
121-
['tag', '-a', newVersionTag, '-m', newVersionTag],
122-
commandOptions
123-
);
124-
} else {
125-
console.warn(`${newVersionTag} tag already exists. Skipping...`);
126-
}
127114
}
128115

129116
if (!this.config.isDryRun) {

0 commit comments

Comments
 (0)