diff --git a/src/index.ts b/src/index.ts index 2e7f4e8..4919ef0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -343,6 +343,12 @@ export class CdktfProviderProject extends cdk.JsiiProject { setSafeDirectory ); + // always publish a new GitHub release, even when publishing to a particular package manager fails + const releaseWorkflow = this.tryFindObjectFile( + ".github/workflows/release.yml" + ); + releaseWorkflow?.addOverride("jobs.release_github.needs", "release"); + // ensure we don't fail if the release file is not present const checkExistingTagStep = ( this.release as any diff --git a/test/__snapshots__/index.test.ts.snap b/test/__snapshots__/index.test.ts.snap index 8ac5f16..4049cef 100644 --- a/test/__snapshots__/index.test.ts.snap +++ b/test/__snapshots__/index.test.ts.snap @@ -549,13 +549,7 @@ jobs: npm deprecate @cdktf/provider-random "See https://cdk.tf/imports for details on how to continue to use the random provider in your CDK for Terraform (CDKTF) projects by generating the bindings locally." release_github: name: Publish to GitHub Releases - needs: - - release - - release_npm - - release_maven - - release_pypi - - release_nuget - - release_golang + needs: release runs-on: ubuntu-latest permissions: contents: write @@ -2876,13 +2870,7 @@ jobs: npm deprecate @cdktf/provider-random "See https://cdk.tf/imports for details on how to continue to use the random provider in your CDK for Terraform (CDKTF) projects by generating the bindings locally." release_github: name: Publish to GitHub Releases - needs: - - release - - release_npm - - release_maven - - release_pypi - - release_nuget - - release_golang + needs: release runs-on: ubuntu-latest permissions: contents: write @@ -5626,13 +5614,7 @@ jobs: npm deprecate @cdktf/provider-random "See https://cdk.tf/imports for details on how to continue to use the random provider in your CDK for Terraform (CDKTF) projects by generating the bindings locally." release_github: name: Publish to GitHub Releases - needs: - - release - - release_npm - - release_maven - - release_pypi - - release_nuget - - release_golang + needs: release runs-on: custom-linux-medium permissions: contents: write @@ -8376,13 +8358,7 @@ jobs: npm deprecate @cdktf/provider-random "See https://cdk.tf/imports for details on how to continue to use the random provider in your CDK for Terraform (CDKTF) projects by generating the bindings locally." release_github: name: Publish to GitHub Releases - needs: - - release - - release_npm - - release_maven - - release_pypi - - release_nuget - - release_golang + needs: release runs-on: ubuntu-latest permissions: contents: write @@ -11136,13 +11112,7 @@ jobs: npm deprecate @cdktf/provider-acme "See https://cdk.tf/imports for details on how to continue to use the acme provider in your CDK for Terraform (CDKTF) projects by generating the bindings locally." release_github: name: Publish to GitHub Releases - needs: - - release - - release_npm - - release_maven - - release_pypi - - release_nuget - - release_golang + needs: release runs-on: ubuntu-latest permissions: contents: write