Skip to content

Commit

Permalink
fix: 版本号规则
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudflypeng committed Oct 28, 2024
1 parent 00439e4 commit b837362
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ permissions:

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+' # 匹配类似 2.1.5 这样的版本号格式
branches:
- main # 或者你的主分支名称,如 master
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -47,6 +47,6 @@ jobs:
run: npm install -g release-it

- name: Release
run: npx release-it --ci
run: npx release-it patch --ci
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit b837362

Please sign in to comment.