Skip to content

Commit

Permalink
feat: Replace workflows deprecated methods (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
tibi77 authored May 8, 2023
1 parent bda0212 commit ddca7c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ jobs:
pnpm changeset:next
git add .changeset/fuel-labs-ci.md
pnpm changeset version --snapshot pr-${{ github.event.pull_request.number }}
echo ::set-output name=version::$(pnpm changeset publish --tag pr-${{ github.event.pull_request.number }})
echo "version=$(pnpm changeset publish --tag pr-${{ github.event.pull_request.number }})" >> $GITHUB_OUTPUT
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set published version
run: |
published_version=$(echo "${{ steps.release.outputs.version }}" | grep -oP '@\K([0-9]+\.){2}[0-9]+-pr-${{ github.event.pull_request.number }}-\d+')
echo "::set-output name=published_version::$published_version"
echo "published_version=$published_version" >> $GITHUB_OUTPUT
id: set_version

- uses: mshick/add-pr-comment@v2
Expand Down

0 comments on commit ddca7c8

Please sign in to comment.