Skip to content

Commit

Permalink
Update npm-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao committed Jan 14, 2025
1 parent 3d7c187 commit 72fa51b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
echo "ref_branch: ${{ steps.branch-name.outputs.ref_branch }}"
- name: Check valid branch
if: ${{ !startsWith(steps.branch-name.outputs.tag, '2.') }}
if: ${{ !startsWith(steps.branch-name.outputs.tag, '3.') }}
run: exit 1

# checkout branch 3.0
Expand Down Expand Up @@ -280,9 +280,16 @@ jobs:
echo "ref_branch: ${{ steps.branch-name.outputs.ref_branch }}"
- name: Check valid branch
if: ${{ !startsWith(steps.branch-name.outputs.tag, '2.') }}
if: ${{ !startsWith(steps.branch-name.outputs.tag, '3.') }}
run: exit 1

# checkout branch 3.0
- name: Checkout branch 3.0
uses: actions/checkout@v2
if: ${{ startsWith(steps.branch-name.outputs.tag, '3.0') }}
with:
ref: '3.0'

# checkout branch 2.7
- name: Checkout branch 2.7
uses: actions/checkout@v2
Expand Down

0 comments on commit 72fa51b

Please sign in to comment.