From 608ad9b8e20cef1699d1dc55f6880fb6f4644f0c Mon Sep 17 00:00:00 2001 From: Daniel Bate Date: Fri, 15 Dec 2023 12:34:39 +0000 Subject: [PATCH] chore: update rc suffix --- .github/workflows/rc-release.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rc-release.yaml b/.github/workflows/rc-release.yaml index 6cdc7d2891b..7d41d291a39 100644 --- a/.github/workflows/rc-release.yaml +++ b/.github/workflows/rc-release.yaml @@ -34,7 +34,7 @@ jobs: with: string: ${{ github.ref }} pattern: "rc/" - replace-with: "" + replace-with: "rc-" - name: Release to @${{ steps.rc_name.outputs.replaced }} tag on npm id: release @@ -42,9 +42,9 @@ jobs: echo "${{ steps.rc_name.outputs.replaced }}" pnpm changeset:next git add .changeset/fuel-labs-ci.md - pnpm changeset version --snapshot rc-${{ steps.rc_name.outputs.replaced }} - changetsets=$(pnpm changeset publish --tag rc-${{ steps.rc_name.outputs.replaced }}) - published_version=$(echo "$changetsets" | grep -oP '@\K([0-9]+\.){2}[0-9]+-rc-${{ steps.rc_name.outputs.replaced }}-\d+' | head -1) + pnpm changeset version --snapshot ${{ steps.rc_name.outputs.replaced }} + changetsets=$(pnpm changeset publish --tag ${{ steps.rc_name.outputs.replaced }}) + published_version=$(echo "$changetsets" | grep -oP '@\K([0-9]+\.){2}[0-9]+-${{ steps.rc_name.outputs.replaced }}-\d+' | head -1) echo "published_version=$published_version" >> $GITHUB_OUTPUT env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -53,6 +53,6 @@ jobs: - uses: mshick/add-pr-comment@v2 with: message: | - This RC is published in NPM with version **rc-${{ steps.rc_name.outputs.replaced }}** + This RC is published in NPM with version **${{ steps.rc_name.outputs.replaced }}** env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}