99permissions :
1010 contents : read
1111
12+ # Every job is guarded with `if: github.head_ref != 'changeset-release/main'` so
13+ # that none of them run on the release PR, which only bumps versions and writes
14+ # changelogs; release-dry-run.yml installs, builds and packs that tree already.
15+
1216jobs :
1317 build :
1418 runs-on : ${{ matrix.os }}
1519 name : Java ${{ matrix.java }} ${{ matrix.os }}
20+ if : github.head_ref != 'changeset-release/main'
1621 strategy :
1722 matrix :
1823 java : [17]
4146 protocol-tests :
4247 runs-on : ${{ matrix.os }}
4348 name : Protocol Tests
49+ if : github.head_ref != 'changeset-release/main'
4450 strategy :
4551 matrix :
4652 java : [17]
7884 lint-typescript :
7985 runs-on : ubuntu-latest
8086 name : TypeScript Lint
87+ if : github.head_ref != 'changeset-release/main'
8188 steps :
8289 - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
8390 - uses : actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
93100 runs-on : smithy-typescript_ubuntu-latest_8-core
94101 name : TypeScript Test ${{ matrix.node }}
95102 needs : ["ensure-typescript-packages-have-changesets", "lint-typescript", "ensure-typescript-formatted"]
103+ if : github.head_ref != 'changeset-release/main'
96104 strategy :
97105 fail-fast : false
98106 matrix :
@@ -129,6 +137,7 @@ jobs:
129137 extract-docs :
130138 runs-on : smithy-typescript_ubuntu-latest_8-core
131139 name : Extract Docs
140+ if : github.head_ref != 'changeset-release/main'
132141 steps :
133142 - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
134143 - uses : actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
@@ -147,6 +156,7 @@ jobs:
147156 ensure-typescript-formatted :
148157 runs-on : ubuntu-latest
149158 name : Ensure TypeScript is formatted
159+ if : github.head_ref != 'changeset-release/main'
150160 steps :
151161 - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
152162 - uses : actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
@@ -167,6 +177,7 @@ jobs:
167177 ensure-typescript-packages-have-changesets :
168178 runs-on : ubuntu-latest
169179 name : Ensure TypeScript packages have changesets
180+ if : github.head_ref != 'changeset-release/main'
170181 steps :
171182 - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
172183 # Include full git history needed for `yarn changeset status`
@@ -180,7 +191,4 @@ jobs:
180191 - name : Install
181192 run : yarn
182193 - name : Ensure changesets exist for each changed package
183- # Skip on the release PR opened by the changesets action, where
184- # changesets have already been consumed by `changeset version`.
185- if : github.head_ref != 'changeset-release/main'
186194 run : yarn changeset status --since=origin/main
0 commit comments