Skip to content

Commit c4f142c

Browse files
committed
chore(ci): remove unneeded version tag
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 d5d554e commit c4f142c

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

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

Lines changed: 0 additions & 7 deletions
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

Lines changed: 0 additions & 13 deletions
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)