From a1261d8e2c27f837c45a3d167e639d3250cfb557 Mon Sep 17 00:00:00 2001 From: bea-claude Date: Thu, 8 Oct 2026 14:49:17 +0200 Subject: [PATCH] =?UTF-8?q?ci(release):=20job=20names=20render=20on=20ever?= =?UTF-8?q?y=20branch=20=E2=80=94=20no=20`needs`=20in=20a=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub does not evaluate `needs.*` in the name of a job it skips, so the jobs a branch does not run showed as "Release ${{ needs.plan.outputs.tag }} on dev" and "Publish ${{ … }} to npm". Names use the github context only, as library-publish's "Promote to ${{ github.ref_name }}" does; the version is in each job's summary. No version bump: merging this releases nothing. Co-Authored-By: Igor Lamos --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 05dbc7c..e185914 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,6 +36,9 @@ concurrency: group: release-${{ github.ref_name }} cancel-in-progress: false +# Job names use the github context only: GitHub does not evaluate `needs.*` in the name of a job +# it skips, so a name built from the plan's tag showed as "${{ … }}" on every other branch's run. +# The version is in each job's summary. jobs: ci: name: CI @@ -67,7 +70,7 @@ jobs: GITHUB_PACKAGES_TOKEN: ${{ github.token }} dev: - name: Release ${{ needs.plan.outputs.tag }} on dev + name: Release on dev needs: plan if: github.ref_name == 'dev' runs-on: ubuntu-latest @@ -148,7 +151,7 @@ jobs: } >> "${GITHUB_STEP_SUMMARY}" promote: - name: Promote ${{ needs.plan.outputs.tag }} to ${{ github.ref_name }} + name: Promote to ${{ github.ref_name }} needs: plan if: github.ref_name == 'stage' || github.ref_name == 'prod' runs-on: ubuntu-latest @@ -224,7 +227,7 @@ jobs: # main only: the public registry. Its own job because npm's trusted publisher is bound to the # `npm` environment, whose deployment branch is main. public: - name: Publish ${{ needs.plan.outputs.tag }} to npm + name: Publish to npm needs: plan if: github.ref_name == 'main' runs-on: ubuntu-latest