From 8e5ca352c3f826c0d969a1f369a982a63b287442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Thu, 15 Dec 2022 09:25:44 +0100 Subject: [PATCH] fix: allow publish-new-version action to run from branch (#2698) We cannot hard code the branch to be "main" if we want to allow the release script to also run from branch (e.g. 4.18 maintenance branch) --- .github/workflows/publish-new-version.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-new-version.yaml b/.github/workflows/publish-new-version.yaml index cc760a44a5..225b32408d 100644 --- a/.github/workflows/publish-new-version.yaml +++ b/.github/workflows/publish-new-version.yaml @@ -35,7 +35,7 @@ jobs: - name: npm version run: | npm version ${{ github.event.inputs.version }} --ignore-scripts - git push origin main + git push origin ${{ github.ref_name }} git push --tags env: CI: true