File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 37
37
- name : Stop Nx Agents
38
38
if : ${{ always() }}
39
39
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
51
- name : Run Changesets (version or publish)
41
52
id : changesets
42
53
uses :
changesets/[email protected]
49
60
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
61
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
51
62
- name : Auto-merge Changesets PR
52
- if : steps.changesets.outputs.hasChangesets == 'true'
63
+ if : steps.changesets.outputs.hasChangesets == 'true' && steps.major.outputs.found == 'false'
53
64
run : |
54
65
gh pr merge --squash "$PR_NUMBER"
55
66
gh api --method POST /repos/$REPO/dispatches -f 'event_type=release'
You can’t perform that action at this time.
0 commit comments