Skip to content

Commit

Permalink
remove --since in changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Sep 10, 2024
1 parent 3ab2cff commit 4a2c212
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
should_publish: ${{ steps.publish_check.outputs.should_publish }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -31,16 +33,15 @@ jobs:
id: publish_check
run: |
# Check if there are changesets that need version bumping
if yarn changeset status --since="${{ github.ref_name }}"; then
if yarn changeset status; then
echo "should_publish=true" >> "$GITHUB_OUTPUT"
else
echo "should_publish=false" >> "$GITHUB_OUTPUT"
fi
- name: Version Packages with Changeset
if: steps.publish_check.outputs.should_publish == 'true'
run: |
yarn changeset version
run: yarn changeset version

- name: Commit Version Changes
if: steps.publish_check.outputs.should_publish == 'true'
Expand Down

0 comments on commit 4a2c212

Please sign in to comment.