File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 branches : [main]
88
99jobs :
10- test :
10+ ci :
1111 runs-on : ubuntu-latest
1212
1313 permissions :
4343 - name : Build
4444 run : pnpm run build
4545
46- - name : Bump version, tag, and create release
46+ - name : Bump version and tag
4747 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
48- env :
49- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5048 run : |
5149 git config user.name "github-actions[bot]"
5250 git config user.email "github-actions[bot]@users.noreply.github.com"
6058 git commit -m "chore: bump version to $NEW_VERSION [skip ci]"
6159 git tag v$NEW_VERSION
6260
63- # Push changes and tag
61+ # Push changes and tag (tag push triggers publish workflow)
6462 git push origin main
6563 git push origin v$NEW_VERSION
66-
67- # Create GitHub release (triggers publish workflow)
68- gh release create v$NEW_VERSION \
69- --title "v$NEW_VERSION" \
70- --generate-notes
71-
72- echo "Created version $NEW_VERSION and published release"
You can’t perform that action at this time.
0 commit comments