chore: fix sdk release workflow and verified with yamllint and act

This commit is contained in:
mingholy.lmh
2025-12-04 17:52:07 +08:00
parent 0630908e0c
commit 427c69ba07

View File

@@ -39,7 +39,8 @@ jobs:
environment: environment:
name: 'production-release' name: 'production-release'
url: '${{ github.server_url }}/${{ github.repository }}/releases/tag/sdk-typescript-${{ steps.version.outputs.RELEASE_TAG }}' url: '${{ github.server_url }}/${{ github.repository }}/releases/tag/sdk-typescript-${{ steps.version.outputs.RELEASE_TAG }}'
if: github.repository == 'QwenLM/qwen-code' if: |-
${{ github.repository == 'QwenLM/qwen-code' }}
permissions: permissions:
contents: 'write' contents: 'write'
packages: 'write' packages: 'write'
@@ -121,7 +122,8 @@ jobs:
MANUAL_VERSION: '${{ inputs.version }}' MANUAL_VERSION: '${{ inputs.version }}'
- name: 'Run Tests' - name: 'Run Tests'
if: github.event.inputs.force_skip_tests != 'true' if: |-
${{ github.event.inputs.force_skip_tests != 'true' }}
working-directory: 'packages/sdk-typescript' working-directory: 'packages/sdk-typescript'
run: | run: |
npm run test:ci npm run test:ci
@@ -190,7 +192,8 @@ jobs:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}' NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
- name: 'Create GitHub Release and Tag' - name: 'Create GitHub Release and Tag'
if: steps.vars.outputs.is_dry_run == 'false' if: |-
${{ steps.vars.outputs.is_dry_run == 'false' }}
env: env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
RELEASE_BRANCH: '${{ steps.release_branch.outputs.BRANCH_NAME }}' RELEASE_BRANCH: '${{ steps.release_branch.outputs.BRANCH_NAME }}'
@@ -204,7 +207,8 @@ jobs:
--generate-notes --generate-notes
- name: 'Create Issue on Failure' - name: 'Create Issue on Failure'
if: failure() if: |-
${{ failure() }}
env: env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
RELEASE_TAG: "${{ steps.version.outputs.RELEASE_TAG || 'N/A' }}" RELEASE_TAG: "${{ steps.version.outputs.RELEASE_TAG || 'N/A' }}"