Skip to content

Commit

Permalink
skip if changesets is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-takei committed May 30, 2024
1 parent 300f9d6 commit 6ab5537
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release-subpackages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Retrieve changesets information
id: changesets-status
run: |
echo "CHANGESETS_LENGTH=$(yarn changeset status --output status.json && jq -r '.changesets | length' status.json && rm status.json)" >> $GITHUB_OUTPUT
- name: Snapshot release to npm
if: ${{ steps.changesets-status.outputs.CHANGESETS_LENGTH }} > 0
run: |
yarn release-subpackages:snapshot
env:
Expand Down

0 comments on commit 6ab5537

Please sign in to comment.