Skip to content

Commit f7ba78f

Browse files
authored
chore(ci): 新增 prerelease 推送 & CI 细节调整 (#1027)
* chore(ci): 新增 prerelease 推送 & ci 细节调整 * chore(ci): 去掉 --ignore-scripts * chore(ci): 去掉 --ignore-scripts
1 parent 627baaa commit f7ba78f

File tree

6 files changed

+27
-10
lines changed

6 files changed

+27
-10
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ jobs:
2525

2626
- name: Build
2727
run: |
28-
yarn workspace @antv/s2 build:esm
29-
yarn build:umd
28+
yarn react:build
3029
3130
- name: Lint scripts, type, style and docs
3231
run: yarn lint

.github/workflows/pr-notify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ jobs:
1111
- name: Ding Talk PR Notify
1212
uses: lijinke666/ding-talk-pr-notify@main
1313
with:
14-
ding_talk_token: ${{ secrets.DING_TALK_ACCESS_TOKEN}}
14+
ding_talk_token: ${{ secrets.DING_TALK_ACCESS_TOKEN }}
1515
at_all: false
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 🎉 Release Notify
2+
3+
on:
4+
release:
5+
# published: latest release 和 pre release 都会触发
6+
# prereleased: 只有 pre release 触发
7+
# released: 只有 latest release 触发
8+
types: [prereleased]
9+
10+
jobs:
11+
notify:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Pre Release Notify
15+
uses: visiky/dingtalk-release-notify@main
16+
with:
17+
DING_TALK_TOKEN: ${{ secrets.DING_TALK_ACCESS_TOKEN }}
18+
notify_title: '🎉 {release_tag} 发布 🎉'
19+
notify_body: '## { title } <hr /> ![preview](https://gw.alipayobjects.com/zos/antfincdn/ISzgBCtgR/2c5c4aaa-4f40-46f7-8f6b-427fa9ff07bb.png) <hr /> { body } <hr />'
20+
notify_footer: '> 前往 [**AntV/S2 Releases**]({ release_url }) 查看完整信息.'
21+
at_all: false
22+
enable_prerelease: true

.github/workflows/release-notify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
notify:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Latest release notify
14+
- name: Latest Release Notify
1515
uses: visiky/dingtalk-release-notify@main
1616
with:
1717
DING_TALK_TOKEN: |

.github/workflows/sync-site-lock-changelog-with-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ jobs:
4545
- name: Push lock
4646
run: |
4747
git add .
48-
git commit -m "chore: 🤖 auto sync site s2 lock and changelog [skip ci]" --no-verify
48+
git commit -m "chore: 🤖 更新 lock changelog 文件" --no-verify
4949
git push origin chore-sync --no-verify
5050
5151
# 使用官方的 github cli 便捷的创建 pr
5252
- name: Create PR
5353
run: |
54-
gh pr create --title "chore: 🤖 auto sync site s2 lock and changelog [skip ci]" --body "🤖 由 [[Sync Site S2 Lock And Changelog With PR](https://github.com/antvis/S2/blob/master/.github/workflows/sync-site-lock-changelog-with-pr.yml)] action 自动创建."
54+
gh pr create --title "chore: 🤖 更新 lock changelog 文件" --body "🤖 由 [[Sync Site S2 Lock And Changelog With PR](https://github.com/antvis/S2/blob/master/.github/workflows/sync-site-lock-changelog-with-pr.yml)] action 自动创建."
5555
env:
5656
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ jobs:
2424
- name: Install dependencies
2525
run: yarn
2626

27-
- name: Build
28-
run: |
29-
yarn workspace @antv/s2 build:cjs
30-
3127
- name: Test
3228
run: |
3329
yarn test:coverage

0 commit comments

Comments
 (0)