Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdapl committed Aug 6, 2024
1 parent 7095387 commit 4951672
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
push:
branches:
- next
- feat/test-publish
workflow_dispatch:

# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages
Expand Down Expand Up @@ -71,7 +72,7 @@ jobs:
name: 创建npm发布
runs-on: ubuntu-latest
# 主库next且执行release更新时执行
if: github.repository == '142vip/core-x' && startsWith(github.event.head_commit.message, 'release(@142vip/')
# if: github.repository == '142vip/core-x' && startsWith(github.event.head_commit.message, 'release(@142vip/')

steps:
- name: Checkout Code
Expand Down Expand Up @@ -111,7 +112,7 @@ jobs:
run: |
pnpm publish -r --filter "./packages/**"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

# 构建并部署Dist
deploy-dist:
Expand All @@ -121,7 +122,7 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# todo 确定这里的触发条件
if: github.repository == '142vip/core-x'
if: github.repository == '142vip/core-x' && startsWith(github.event.head_commit.message, 'chore(release):')
steps:
# 拉取代码
- name: Checkout
Expand Down

0 comments on commit 4951672

Please sign in to comment.