File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 - synchronize
1212 branches :
1313 - main
14+ - next
1415
1516permissions : {}
1617
4546 # Returns exit code 1 when there are changes without changesets attached to them.
4647 # See: https://github.com/changesets/changesets/blob/main/docs/automating-changesets.md#blocking
4748 - name : Run Changesets
48- run : pnpm changeset status --since origin/main
49+ run : pnpm changeset status --since origin/${{ github.event.pull_request.base.ref }}
4950
5051 disallow-major-release :
5152 name : Disallow Major Release
5455 permissions :
5556 contents : read
5657
57- # Skip release & dependabot PRs
58+ # Block major releases only on main, allow on next.
59+ # Skip release & dependabot PRs.
5860 if : |
61+ github.event.pull_request.base.ref == 'main' &&
5962 ! (github.event.pull_request.title == 'chore(release): publish' && github.event.pull_request.user.login == 'github-actions[bot]') &&
6063 ! (github.event.pull_request.user.login == 'dependabot[bot]')
6164
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Security
22
33on :
44 pull_request :
5- branches : ['main']
5+ branches : ['main', 'next' ]
66
77 schedule :
88 - cron : ' 0 0 * * 6'
You can’t perform that action at this time.
0 commit comments