From 1e573c17fd00986a1f04556cc869861da7330f71 Mon Sep 17 00:00:00 2001 From: Nara Kasbergen Date: Wed, 28 Aug 2024 13:38:12 +0200 Subject: [PATCH] fix(release): publish a GitHub release even if a particular package manager fails --- .github/workflows/release.yml | 8 +------- .projenrc.ts | 2 ++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4493b19..6e3353b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,13 +59,7 @@ jobs: overwrite: true 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 diff --git a/.projenrc.ts b/.projenrc.ts index 72cb58c..8d72781 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -128,5 +128,7 @@ releaseWorkflow?.addOverride("on.push", { ".github/**/*.md", ], }); +// always publish a new GitHub release, even when publishing to a particular package manager fails +releaseWorkflow?.addOverride("jobs.release_github.needs", "release"); project.synth();