From 75286f11f0fbe835b98eb26ad684ce84548b22b0 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Fri, 19 Sep 2025 11:23:58 +0100 Subject: [PATCH] CI: Use workflow_dispatch from release-build for canaries (#111365) * CI: Use workflow_dispatch from release-build for canaries * fix workflow name --- .github/workflows/release-build.yml | 22 ++++++++++++++++++++++ .github/workflows/release-npm.yml | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index ff65d90cf5b..d78e2f0aeea 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -287,6 +287,28 @@ jobs: build_id: ${{ github.run_id }} version_type: "canary" + dispatch-npm-canaries: + if: github.ref_name == 'main' + name: Dispatch publish NPM canaries + permissions: + actions: write + runs-on: ubuntu-x64-small + needs: + - setup + steps: + - name: Dispatch action + env: + GRAFANA_COMMIT: ${{ needs.setup.outputs.grafana-commit }} + VERSION: ${{ needs.setup.outputs.version }} + BUILD_ID: ${{ github.run_id }} + run: | + gh workflow run release-npm.yml \ + --repo grafana/grafana \ + --ref main \ + --field grafana_commit="$GRAFANA_COMMIT" \ + --field version="$VERSION" \ + --field build_id="$BUILD_ID" + # notify-pr creates (or updates) a comment in a pull request to link to this workflow where the release artifacts are # being built. notify-pr: diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml index ff0af784232..9caeaebe252 100644 --- a/.github/workflows/release-npm.yml +++ b/.github/workflows/release-npm.yml @@ -1,4 +1,5 @@ -name: Publish NPM packages +name: Release NPM packages +run-name: Publish NPM ${{ inputs.version_type }} ${{ inputs.version }} on: workflow_call: inputs: