From 825be2a532f7e9045122d40b00263dd597b1b0cd Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Wed, 3 Jun 2026 21:47:23 +0300 Subject: [PATCH 1/2] ci: deploy dist branches from 17.x.x deploy jobs became stale on 2024-06-2 when the repository stopped using main as the default branch and moved the active default line to 16.x.x (#4131). Issue #4766 notes that the jobs were still gated on refs/heads/main. This PR gates the npm and deno branch deployments on 17.x.x => that branch is about to become the new default. --- .github/workflows/push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ab2a0991f4..c046ac7917 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -10,7 +10,7 @@ jobs: deploy-to-npm-branch: name: Deploy to `npm` branch needs: ci - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/17.x.x' permissions: contents: write # for actions/checkout and to push branch uses: ./.github/workflows/deploy-artifact-as-branch.yml @@ -23,7 +23,7 @@ jobs: deploy-to-deno-branch: name: Deploy to `deno` branch needs: ci - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/17.x.x' permissions: contents: write # for actions/checkout and to push branch uses: ./.github/workflows/deploy-artifact-as-branch.yml From 8db60a8541e0eca4e3a5b26b2514774c37bd4cca Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Wed, 3 Jun 2026 21:47:50 +0300 Subject: [PATCH 2/2] ci: use push sha in dist branch commits PR #3491 copied `github.event.workflow_run.head_sha` into a workflow that runs on push events. Issue #4766 notes that this leaves the generated npm and deno deployment commit messages without the source commit hash. Use `github.sha` instead of `github.event.workflow_run.head_sha` so those deployment commits identify the commit that produced their artifacts. --- .github/workflows/push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c046ac7917..c5768df803 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,7 +18,7 @@ jobs: environment: npm-branch artifact_name: npmDist target_branch: npm - commit_message: "Deploy ${{github.event.workflow_run.head_sha}} to 'npm' branch" + commit_message: "Deploy ${{ github.sha }} to 'npm' branch" deploy-to-deno-branch: name: Deploy to `deno` branch @@ -31,4 +31,4 @@ jobs: environment: deno-branch artifact_name: denoDist target_branch: deno - commit_message: "Deploy ${{github.event.workflow_run.head_sha}} to 'deno' branch" + commit_message: "Deploy ${{ github.sha }} to 'deno' branch"