Skip to content

Commit 2b91409

Browse files
committed
chore: update release-sdk.yml to sync lockfile
1 parent 4efdea0 commit 2b91409

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/release-sdk.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ on:
3333
type: 'boolean'
3434
default: false
3535

36+
concurrency:
37+
group: '${{ github.workflow }}'
38+
cancel-in-progress: false
39+
3640
jobs:
3741
release-sdk:
3842
runs-on: 'ubuntu-latest'
@@ -164,19 +168,19 @@ jobs:
164168
echo "BRANCH_NAME=${BRANCH_NAME}" >> "${GITHUB_OUTPUT}"
165169
166170
- name: 'Update package version'
167-
working-directory: 'packages/sdk-typescript'
168171
env:
169172
RELEASE_VERSION: '${{ steps.version.outputs.RELEASE_VERSION }}'
170173
run: |-
171-
npm version "${RELEASE_VERSION}" --no-git-tag-version --allow-same-version
174+
# Use npm workspaces so the root lockfile is updated consistently.
175+
npm version -w @qwen-code/sdk "${RELEASE_VERSION}" --no-git-tag-version --allow-same-version
172176
173177
- name: 'Commit and Conditionally Push package version'
174178
env:
175179
BRANCH_NAME: '${{ steps.release_branch.outputs.BRANCH_NAME }}'
176180
IS_DRY_RUN: '${{ steps.vars.outputs.is_dry_run }}'
177181
RELEASE_TAG: '${{ steps.version.outputs.RELEASE_TAG }}'
178182
run: |-
179-
git add packages/sdk-typescript/package.json
183+
git add packages/sdk-typescript/package.json package-lock.json
180184
if git diff --staged --quiet; then
181185
echo "No version changes to commit"
182186
else
@@ -245,6 +249,17 @@ jobs:
245249
246250
echo "PR_URL=${pr_url}" >> "${GITHUB_OUTPUT}"
247251
252+
- name: 'Wait for CI checks to complete'
253+
if: |-
254+
${{ steps.vars.outputs.is_dry_run == 'false' }}
255+
env:
256+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
257+
PR_URL: '${{ steps.pr.outputs.PR_URL }}'
258+
run: |-
259+
set -euo pipefail
260+
echo "Waiting for CI checks to complete..."
261+
gh pr checks "${PR_URL}" --watch --interval 30
262+
248263
- name: 'Enable auto-merge for release PR'
249264
if: |-
250265
${{ steps.vars.outputs.is_dry_run == 'false' }}

0 commit comments

Comments
 (0)