Skip to content

Commit

Permalink
ci(release): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tmillr committed Aug 22, 2022
1 parent 34be6d5 commit 698e177
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
- name: Generate Release Please Run Summary
env:
RELEASE_INFO: ${{ toJSON(steps.release.outputs) }}
run: |
printf '```json\n%s\n```' "$RELEASE_INFO" >> "$GITHUB_STEP_SUMMARY"
run: printf '```json\n%s\n```' "$RELEASE_INFO" >> "$GITHUB_STEP_SUMMARY"

- if: steps.release.outputs.pr != ''
uses: actions/setup-node@v3
Expand All @@ -31,7 +30,7 @@ jobs:

- if: steps.release.outputs.pr != ''
env:
PR_NUMBER: ${{ fromJSON(steps.release.outputs.pr).number }}
PR_NUMBER: ${{ steps.release.outputs.pr != '' && fromJSON(steps.release.outputs.pr).number }}
run: |
x="$(npm publish --dry-run | tee "$GITHUB_STEP_SUMMARY")"
gh pr comment "$PR_NUMBER" -b "$x"

0 comments on commit 698e177

Please sign in to comment.