@@ -37,17 +37,17 @@ jobs:
3737 - name : Stop Nx Agents
3838 if : ${{ always() }}
3939 run : npx nx-cloud stop-all-agents
40- - name : Check for Changesets marked as major
41- id : major
42- run : |
43- echo "found=false" >> $GITHUB_OUTPUT
44- regex="(major)"
45- shopt -s nullglob
46- for file in .changeset/*.md; do
47- if [[ $(cat $file) =~ $regex ]]; then
48- echo "found=true" >> $GITHUB_OUTPUT
49- fi
50- done
40+ # - name: Check for Changesets marked as major
41+ # id: major
42+ # run: |
43+ # echo "found=false" >> $GITHUB_OUTPUT
44+ # regex="(major)"
45+ # shopt -s nullglob
46+ # for file in .changeset/*.md; do
47+ # if [[ $(cat $file) =~ $regex ]]; then
48+ # echo "found=true" >> $GITHUB_OUTPUT
49+ # fi
50+ # done
5151 - name : Run Changesets (version or publish)
5252 id : changesets
5353 uses : changesets/action@v1.5.3
@@ -59,18 +59,23 @@ jobs:
5959 env :
6060 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6161 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
62- - name : Auto-merge Changesets PR
63- if : steps.changesets.outputs.hasChangesets == 'true' && steps.major.outputs.found == 'false'
64- run : |
65- gh pr merge --squash "$PR_NUMBER"
66- gh api --method POST /repos/$REPO/dispatches -f 'event_type=release'
67- env :
68- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69- REPO : ${{ github.repository }}
70- PR_NUMBER : ${{ steps.changesets.outputs.pullRequestNumber }}
62+ # - name: Auto-merge Changesets PR
63+ # if: steps.changesets.outputs.hasChangesets == 'true' && steps.major.outputs.found == 'false'
64+ # run: |
65+ # gh pr merge --squash "$PR_NUMBER"
66+ # gh api --method POST /repos/$REPO/dispatches -f 'event_type=release'
67+ # env:
68+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+ # REPO: ${{ github.repository }}
70+ # PR_NUMBER: ${{ steps.changesets.outputs.pullRequestNumber }}
7171 - name : Upload coverage to Codecov
7272 uses : codecov/codecov-action@v4.6.0
7373 with :
7474 directory : packages
7575 env :
7676 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
77+ - name : Comment on PRs about release
78+ if : steps.changesets.outputs.published == 'true'
79+ uses : tanstack/config/.github/comment-on-release@main
80+ with :
81+ published-packages : ${{ steps.changesets.outputs.publishedPackages }}
0 commit comments