From d94d447777f998d7d545ca9628539a2b8ecb10fa Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Thu, 15 Aug 2024 10:31:39 +0100 Subject: [PATCH] [LOCAL] Manual cherry-pick of 28597168aa8e9cb852efd019827d8222331d5b31 --- .github/workflows/publish-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index b75ef7d27fa..bba8fa83156 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -696,6 +696,7 @@ jobs: path: build - name: Publish @react-native-community/template if: needs.set_release_type.outputs.RELEASE_TYPE == 'release' + shell: bash id: publish-to-npm run: | COMMIT_MSG=$(git log -n1 --pretty=%B); @@ -706,7 +707,7 @@ jobs: IS_LATEST=false fi # Go from v0.75.0-rc.4 -> 0.75-stable, which is the template's branching scheme - VERSION=$(grep -oE '\d+\.\d+' <<< "${{ github.ref_name }}" | { read version; echo "$version-stable" }) + VERSION=$(grep -oE '\d+\.\d+' <<< "${{ github.ref_name }}" | { read version; echo "$version-stable"; }) echo "VERSION=$VERSION" >> $GITHUB_OUTPUT curl -L -X POST https://api.github.com/repos/react-native-community/template/release.yaml/dispatches \ @@ -716,6 +717,7 @@ jobs: - name: Wait for template to be published if: needs.set_release_type.outputs.RELEASE_TYPE == 'release' timeout-minutes: 3 + shell: bash env: VERSION: ${{ steps.publish-to-npm.outputs.VERSION }} TAG: ${{ steps.publish-to-npm.outputs.TAG }}