Skip to content

Commit

Permalink
ignore changeset failure
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusschiesser committed Oct 22, 2024
1 parent 802cfff commit 3802136
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ jobs:
- name: Get changeset status
id: get-changeset-status
run: |
yarn changeset status --output .changeset/status.json
new_version=$(jq -r '.releases[0].newVersion' < .changeset/status.json)
rm -v .changeset/status.json
echo "new-version=${new_version}" >> "$GITHUB_OUTPUT"
if yarn changeset status --output .changeset/status.json; then
new_version=$(jq -r '.releases[0].newVersion' < .changeset/status.json)
rm -v .changeset/status.json
echo "new-version=${new_version}" >> "$GITHUB_OUTPUT"
else
echo "No changes detected by changeset"
fi
- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down

0 comments on commit 3802136

Please sign in to comment.