From bbd46e7da7f46a8030e6af5a372b96da80798c2a Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Fri, 13 Dec 2024 17:00:03 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/prerelease-notify.yml | 61 ------------------------- .github/workflows/release-notify.yml | 8 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 66 deletions(-) delete mode 100644 .github/workflows/prerelease-notify.yml diff --git a/.github/workflows/prerelease-notify.yml b/.github/workflows/prerelease-notify.yml deleted file mode 100644 index 794755a377..0000000000 --- a/.github/workflows/prerelease-notify.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: πŸŽ‰ Release Notify - -on: - release: - # published: latest release ε’Œ pre release ιƒ½δΌšθ§¦ε‘ - # prereleased: εͺζœ‰ pre release 触发 - # released: εͺζœ‰ latest release 触发 - types: [prereleased] - -jobs: - notify: - runs-on: ubuntu-latest - steps: - - name: Pre Release Notify - uses: zcong1993/actions-ding@master - with: - dingToken: ${{ secrets.DING_TALK_ACCESS_TOKEN }} - ignoreError: true - body: | - { - "msgtype": "link", - "link": { - "title": "πŸŽ‰ AntV/S2 ζ΅‹θ―•η‰ˆζœ¬ε‘εΈƒε•¦ (${{ github.head_ref || github.ref_name }}) πŸŽ‰", - "text": "πŸ“‹ ζ΅‹θ―•η‰ˆζœ¬θ―·θ°¨ζ…Žδ½Ώη”¨, 点击ζŸ₯ηœ‹ζ›΄ζ–°ζ—₯εΏ—", - "messageUrl": "https://github.com/antvis/S2/releases", - "picUrl": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1PTTQLk3j5AAAAAAAAAAAAAADmJ7AQ/original" - } - } - - - name: Pre Release Notify - uses: zcong1993/actions-ding@master - with: - dingToken: ${{ secrets.DING_TALK_GROUP_TOKEN }} - ignoreError: true - body: | - { - "msgtype": "link", - "link": { - "title": "πŸŽ‰ AntV/S2 ζ΅‹θ―•η‰ˆζœ¬ε‘εΈƒε•¦ πŸŽ‰", - "text": "πŸ“‹ ζ΅‹θ―•η‰ˆζœ¬θ―·θ°¨ζ…Žδ½Ώη”¨, 点击ζŸ₯ηœ‹ζ›΄ζ–°ζ—₯εΏ—", - "messageUrl": "https://github.com/antvis/S2/releases", - "picUrl": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1PTTQLk3j5AAAAAAAAAAAAAADmJ7AQ/original" - } - } - - - name: Pre Release Notify - uses: zcong1993/actions-ding@master - with: - dingToken: ${{ secrets.DING_TALK_PUBLIC_TOKEN }} - ignoreError: true - body: | - { - "msgtype": "link", - "link": { - "title": "πŸŽ‰ AntV/S2 ζ΅‹θ―•η‰ˆζœ¬ε‘εΈƒε•¦ πŸŽ‰", - "text": "πŸ“‹ ζ΅‹θ―•η‰ˆζœ¬θ―·θ°¨ζ…Žδ½Ώη”¨, 点击ζŸ₯ηœ‹ζ›΄ζ–°ζ—₯εΏ—", - "messageUrl": "https://github.com/antvis/S2/releases", - "picUrl": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1PTTQLk3j5AAAAAAAAAAAAAADmJ7AQ/original" - } - } - diff --git a/.github/workflows/release-notify.yml b/.github/workflows/release-notify.yml index 02d9715038..dc477ee485 100644 --- a/.github/workflows/release-notify.yml +++ b/.github/workflows/release-notify.yml @@ -5,7 +5,7 @@ on: # published: latest release ε’Œ pre release ιƒ½δΌšθ§¦ε‘ # prereleased: εͺζœ‰ pre release 触发 # released: εͺζœ‰ latest release 触发 - types: [released] + types: [published] jobs: notify: @@ -20,7 +20,7 @@ jobs: { "msgtype": "link", "link": { - "title": "πŸŽ‰ AntV/S2 ζ–°η‰ˆζœ¬ε‘εΈƒε•¦ (${{ github.head_ref || github.ref_name }}) πŸŽ‰", + "title": "πŸŽ‰ ${{ github.head_ref || github.ref_name || 'AntV/S2 ζ–°η‰ˆζœ¬' }} 发布啦 πŸŽ‰", "text": "πŸ“‹ 点击ζŸ₯ηœ‹ζ›΄ζ–°ζ—₯εΏ—", "messageUrl": "https://github.com/antvis/S2/releases", "picUrl": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1PTTQLk3j5AAAAAAAAAAAAAADmJ7AQ/original" @@ -36,7 +36,7 @@ jobs: { "msgtype": "link", "link": { - "title": "πŸŽ‰ AntV/S2 ζ–°η‰ˆζœ¬ε‘εΈƒε•¦ πŸŽ‰", + "title": "πŸŽ‰ ${{ github.head_ref || github.ref_name || 'AntV/S2 ζ–°η‰ˆζœ¬' }} 发布啦 πŸŽ‰", "text": "πŸ“‹ 点击ζŸ₯ηœ‹ζ›΄ζ–°ζ—₯εΏ—", "messageUrl": "https://github.com/antvis/S2/releases", "picUrl": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1PTTQLk3j5AAAAAAAAAAAAAADmJ7AQ/original" @@ -52,7 +52,7 @@ jobs: { "msgtype": "link", "link": { - "title": "πŸŽ‰ AntV/S2 ζ–°η‰ˆζœ¬ε‘εΈƒε•¦ πŸŽ‰", + "title": "πŸŽ‰ ${{ github.head_ref || github.ref_name || 'AntV/S2 ζ–°η‰ˆζœ¬' }} 发布啦 πŸŽ‰", "text": "πŸ“‹ 点击ζŸ₯ηœ‹ζ›΄ζ–°ζ—₯εΏ—", "messageUrl": "https://github.com/antvis/S2/releases", "picUrl": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1PTTQLk3j5AAAAAAAAAAAAAADmJ7AQ/original" diff --git a/package.json b/package.json index 52672acfe7..0ad4d26580 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "build:umd": "pnpm -r --filter './packages/*' --stream build:umd", "build:size-limit": "pnpm -r --filter './packages/*' --stream build:size-limit", "build:size-limit-json": "pnpm -r --filter './packages/*' --stream build:size-limit-json", - "release": "pnpm -r --filter !@antv/s2-site --workspace-concurrency=1 exec npx --no-install semantic-release", + "release": "pnpm -r --filter !@antv/s2-site --filter !@antv/s2-vue --workspace-concurrency=1 exec npx --no-install semantic-release", "release:preview": "pnpm release --dry-run --no-ci", "release:bump-version": "node ./scripts/bump-version.js", "test": "pnpm -r --filter './packages/*' --stream test",