diff options
| author | Orkun Tokdemir <orkun.tokdemir@qt.io> | 2024-12-03 14:24:16 +0100 |
|---|---|---|
| committer | Orkun Tokdemir <orkun.tokdemir@qt.io> | 2024-12-05 13:28:32 +0000 |
| commit | 09974b9799ec1635028d1d82fa831c2911c62a79 (patch) | |
| tree | 87e779c5b56ab0edc51d9862a5972dacd455cb82 | |
| parent | f6f88c751c9d0714396a10f999d640c3c7fd1bf6 (diff) | |
ci-scripts: Remove checking release commit
Since we dediced to increase the version number in advance,
we should not check the commit message for the release commit.
Change-Id: Ia1c66ba56cde471420eb443269612b685fc91e80
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| -rw-r--r-- | scripts/common.ts | 15 | ||||
| -rw-r--r-- | scripts/publish.ts | 1 | ||||
| -rw-r--r-- | scripts/publish_ext_pack.ts | 2 |
3 files changed, 0 insertions, 18 deletions
diff --git a/scripts/common.ts b/scripts/common.ts index fac42e0..d61ad1a 100644 --- a/scripts/common.ts +++ b/scripts/common.ts @@ -42,18 +42,3 @@ export function checkForUncommittedChanges() { ); } } - -export function checkForTagCommit(extension: string, version: string) { - const commitMessageTitle = execSync('git show -s --format=%s HEAD') - .toString() - .trim(); - - if ( - !commitMessageTitle.startsWith(extension) || - !commitMessageTitle.endsWith(version) - ) { - throw new Error( - `Please checkout to the release commit for ${extension} version ${version} before proceeding.` - ); - } -} diff --git a/scripts/publish.ts b/scripts/publish.ts index 9500bf5..997759d 100644 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -40,7 +40,6 @@ function main() { `Cannot publish stable version for odd minor version: ${version}` ); } - common.checkForTagCommit(targetExtension, version); execSync(`npm run _prepublish`, { stdio: 'inherit' }); execSync(`npm run ci:${targetExtension}`, { stdio: 'inherit' }); diff --git a/scripts/publish_ext_pack.ts b/scripts/publish_ext_pack.ts index 6cfe14a..a4e183f 100644 --- a/scripts/publish_ext_pack.ts +++ b/scripts/publish_ext_pack.ts @@ -29,8 +29,6 @@ function main() { const publishCommand = `npx vsce publish ${preRelease ? '--pre-release' : ''}`; const version = common.getExtensionVersion(targetExtensionPackRoot); - common.checkForTagCommit(targetExtensionPack, version); - execSync(`npm run _prepublish_git`, { stdio: 'inherit' }); execSync(`npm ci`, { stdio: 'inherit' }); execSync(`npm run checkChangelog:${targetExtensionPack}`, { |
