diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 8e96994..e086539 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -2,8 +2,6 @@ name: Release with Changeset on: workflow_dispatch: - branches: - - main jobs: release: @@ -48,10 +46,17 @@ jobs: echo "::set-output name=commit::false" fi + - name: Debug Commit Output + run: echo "Commit output: ${{ steps.changesets.outputs.commit }}" + + - name: Pull Latest Changes + run: git pull origin main --rebase + env: + GITHUB_TOKEN: ${{ github.token }} + - name: Push Version Bump to Main if: steps.changesets.outputs.commit == 'true' - run: | - git push origin main + run: git push origin main env: GITHUB_TOKEN: ${{ github.token }} @@ -104,4 +109,4 @@ jobs: gh release create "v${CURRENT_VERSION}" \ --title "v${CURRENT_VERSION}: ${{ steps.release_summary.outputs.summary }}" \ --notes "${{ steps.release_summary.outputs.summary }}" \ - --generate-notes + --generate-notes \ No newline at end of file