diff --git a/.github/workflows/changeset-release.yml b/.github/workflows/changeset-release.yml index c2cf744da..9ba2b9125 100644 --- a/.github/workflows/changeset-release.yml +++ b/.github/workflows/changeset-release.yml @@ -12,10 +12,10 @@ jobs: steps: - name: 🛠 Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: 🔧 Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20 @@ -26,6 +26,24 @@ jobs: uses: changesets/action@v1 with: version: yarn changeset version - commit: "🔖 chore: version bump and changelog" + commit: '🔖 chore: version bump and changelog' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: 📝 Bump version and generate changelog + run: | + git fetch --all + git checkout main + npx changeset version + git add . + git commit -m "Version packages and generate changelog" + git push --follow-tags + + - name: 📦 Create GitHub Release + uses: actions/create-release@v1 + with: + tag_name: ${{ github.ref_name }} + release_name: Release ${{ github.ref_name }} + body_path: ./CHANGELOG.md + draft: false + prerelease: false