1- # Auto-releases SDK on push to:
2- # - main (@next channel)
3- # - stable (@latest channel)
1+ # Auto-releases SDK on push to main (@next channel).
2+ # Stable releases are orchestrated centrally by release-stable.yml.
43# Also supports manual dispatch as a fallback for one-off releases.
54name : " \U0001F4E6 Release SDK"
65
76on :
87 push :
98 branches :
109 - main
11- - stable
1210 paths :
1311 # Keep in sync with packages/sdk/.releaserc.cjs includePaths (patch-commit-filter).
1412 - ' packages/sdk/**'
2018 - ' packages/ai/**'
2119 - ' packages/word-layout/**'
2220 - ' packages/preset-geometry/**'
21+ - ' shared/**'
2322 - ' scripts/semantic-release/**'
2423 - ' pnpm-workspace.yaml'
2524 - ' !**/*.md'
2625 workflow_dispatch :
2726 inputs :
2827 version :
29- description : " Version to release (e.g. 1.0.0-next.7). Leave empty to publish the current repo version."
28+ description : ' Version to release (e.g. 1.0.0-next.7). Leave empty to publish the current repo version.'
3029 required : false
3130 type : string
3231 dry-run :
33- description : " Dry run — build and validate without publishing"
32+ description : ' Dry run — build and validate without publishing'
3433 required : false
3534 type : boolean
3635 default : false
3736 npm-tag :
38- description : " npm dist-tag for Node SDK publish (e.g. latest, next). Only used for manual version override."
37+ description : ' npm dist-tag for Node SDK publish (e.g. latest, next). Only used for manual version override.'
3938 required : false
4039 type : string
4140 default : latest
@@ -46,7 +45,7 @@ permissions:
4645 id-token : write # PyPI trusted publishing (OIDC)
4746
4847concurrency :
49- group : ${{ github.ref_name == 'stable' && 'release-stable-writeback ' || format('{0}-{1}', github.workflow, github.ref) }}
48+ group : ${{ github.ref_name == 'stable' && 'release-stable' || format('{0}-{1}', github.workflow, github.ref) }}
5049 cancel-in-progress : ${{ github.ref_name != 'stable' }}
5150
5251jobs :
@@ -85,15 +84,15 @@ jobs:
8584 with :
8685 node-version-file : .nvmrc
8786 cache : pnpm
88- registry-url : " https://registry.npmjs.org"
87+ registry-url : ' https://registry.npmjs.org'
8988
9089 - uses : oven-sh/setup-bun@v2
9190 with :
9291 bun-version : 1.3.12
9392
9493 - uses : actions/setup-python@v5
9594 with :
96- python-version : " 3.12"
95+ python-version : ' 3.12'
9796
9897 - name : Install canvas system dependencies
9998 run : |
@@ -233,15 +232,15 @@ jobs:
233232 with :
234233 node-version-file : .nvmrc
235234 cache : pnpm
236- registry-url : " https://registry.npmjs.org"
235+ registry-url : ' https://registry.npmjs.org'
237236
238237 - uses : oven-sh/setup-bun@v2
239238 with :
240239 bun-version : 1.3.12
241240
242241 - uses : actions/setup-python@v5
243242 with :
244- python-version : " 3.12"
243+ python-version : ' 3.12'
245244
246245 - name : Install dependencies
247246 run : pnpm install --frozen-lockfile
0 commit comments