Skip to content

Commit

Permalink
chore: update rc suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbate committed Dec 15, 2023
1 parent fdb9e68 commit 608ad9b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rc-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ 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
run: |
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 }}
Expand All @@ -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 }}

0 comments on commit 608ad9b

Please sign in to comment.