2021-02-20 14:21:17 +08:00
|
|
|
# Current release process:
|
|
|
|
# 1. `npm run pub` will call antd-tools `run pub`
|
|
|
|
# 2. antd-tools `run pub` will generate a new tag
|
|
|
|
# 3. antd-tools `run pub` will trigger `npm publish` at the same time
|
|
|
|
# 4. Then the new tag will trigger this current action
|
|
|
|
# 5. The action will generate a new release, and publish DingDing notification at the same time
|
|
|
|
|
|
|
|
name: Release Helper
|
|
|
|
|
|
|
|
on:
|
|
|
|
create
|
|
|
|
|
2022-04-11 11:15:26 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-02-20 14:21:17 +08:00
|
|
|
jobs:
|
|
|
|
release-helper:
|
2022-04-11 11:15:26 +08:00
|
|
|
permissions:
|
|
|
|
contents: write # for actions-cool/release-helper to create releases
|
2021-10-28 20:25:56 +08:00
|
|
|
if: github.event.ref_type == 'tag'
|
2021-02-20 14:21:17 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: make release
|
2022-02-15 16:57:18 +08:00
|
|
|
uses: actions-cool/release-helper@v2
|
2021-02-20 14:21:17 +08:00
|
|
|
with:
|
|
|
|
triger: 'tag'
|
|
|
|
changelogs: 'CHANGELOG.en-US.md, CHANGELOG.zh-CN.md'
|
|
|
|
branch: 'master'
|
2022-02-15 16:57:18 +08:00
|
|
|
dingding-token: ${{ secrets.DINGDING_BOT_TOKEN }} ${{ secrets.DINGDING_BOT_BIGFISH_TOKEN }}
|
2022-01-19 15:26:45 +08:00
|
|
|
dingding-msg: 'CHANGELOG.zh-CN.md'
|
2022-07-12 18:01:14 +08:00
|
|
|
dingding-delay-minute: 10
|
|
|
|
antd-conch-msg: '🐟 当前 Bigfish 内嵌 antd 版本:'
|
2022-05-15 18:48:24 +08:00
|
|
|
msg-title: '# Ant Design {{v}} 发布日志'
|
2022-01-19 15:26:45 +08:00
|
|
|
msg-poster: 'https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*zx7LTI_ECSAAAAAAAAAAAABkARQnAQ'
|
|
|
|
msg-footer: '💬 前往 [**Ant Design Releases**]({{url}}) 查看更新日志'
|
|
|
|
prettier: true
|
|
|
|
prerelease-filter: '-, a, b, A, B'
|