Skip to content

Commit 349ec56

Browse files
authored
ci: preparation for major releases [AR-55136] (#315)
1 parent 88ddf02 commit 349ec56

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/changeset.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- synchronize
1212
branches:
1313
- main
14+
- next
1415

1516
permissions: {}
1617

@@ -45,7 +46,7 @@ jobs:
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
@@ -54,8 +55,10 @@ jobs:
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

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Security
22

33
on:
44
pull_request:
5-
branches: ['main']
5+
branches: ['main', 'next']
66

77
schedule:
88
- cron: '0 0 * * 6'

0 commit comments

Comments
 (0)