Skip to content

Commit

Permalink
chore(release): 2.3.40 published (#2970)
Browse files Browse the repository at this point in the history
  • Loading branch information
visiky committed Nov 12, 2021
1 parent bb9e01c commit f464ac1
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 20 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: 🚀 Auto Release
on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && startsWith(github.event.head_commit.message , 'chore(release):')" # commit 记录带 'chore(release):' 关键词

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 16 # semantic-release 需要 >= 16 的 Node.js 环境

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn

- name: Build
run: yarn build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn release

# G2 栈技术交流群
- name: Release success ding talk official group notify
if: ${{ success() }}
uses: visiky/dingtalk-release-notify@main
with:
DING_TALK_TOKEN: ${{ secrets.DING_TALK_TOKENS}}
notify_title: '🎉 G2Plot 发布 release {release_tag} 🎉'
notify_body: '## { title }<hr /> ![](https://gw.alipayobjects.com/zos/antfincdn/AdgOtrq%26KF/G2Plot.png) <hr /> { body } <hr />'
notify_footer: '> 前往 [**G2Plot Releases**]({ release_url }) 查看完整信息.'
at_all: true

# 发布失败推送通知内部开发群
- name: Release failed ding talk dev group notify
if: ${{ failure() }}
uses: zcong1993/actions-ding@master
with:
dingToken: ${{ secrets.DEV_GROUP_DING_TOKEN }}
body: |
{
"msgtype": "link",
"link": {
"title": "🚨 自动发布失败",
"text": "🔗 请点击链接查看具体原因, 及时修复 🚑",
"messageUrl": "https://github.com/antvis/G2Plot/actions/workflows/auto-release.yml",
"picUrl": "https://gw.alipayobjects.com/zos/antfincdn/AdgOtrq%26KF/G2Plot.png"
}
}
18 changes: 0 additions & 18 deletions .github/workflows/release-notify.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
branch: 'master',
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
[
'@semantic-release/git',
{
message: 'chore(release): 🤖 ${nextRelease.version} [ci skip]',
},
],
'@semantic-release/npm',
'@semantic-release/github',
],
preset: 'angular',
};
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#### 2.3.40 (2021-11-12)

##### Documentation Changes

* 增加图例自定义 marker 的 demo ([#2961](https://github.com/antvis/g2plot/pull/2961)) ([ceb52ab8](https://github.com/antvis/g2plot/commit/ceb52ab88a4bda626f6407e67030f7ff4586dca3))
* correct doc about `rotate` ([#2959](https://github.com/antvis/g2plot/pull/2959)) ([d3c5e856](https://github.com/antvis/g2plot/commit/d3c5e85691cbc5b948492bf7a541740cdc32dffb))

##### New Features

* **sankey:** nodelink data supported ([#2967](https://github.com/antvis/g2plot/pull/2967)) ([bb9e01cd](https://github.com/antvis/g2plot/commit/bb9e01cd37aa27cef66aa9fcab85f9e534160503))

##### Bug Fixes

* 修复文档错误 导致网站部署问题 ([ce2a4ea9](https://github.com/antvis/g2plot/commit/ce2a4ea9fc5ae6a6ba1be11f2b7117146b7e8a62))


#### 2.3.39 (2021-10-23)

##### Documentation Changes
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g2plot",
"version": "2.3.39",
"version": "2.3.40",
"description": "An nteractive and responsive charting library",
"keywords": [
"chart",
Expand Down Expand Up @@ -73,6 +73,8 @@
"@babel/runtime": "^7.11.2",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-angular": "^8.2.0",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@types/jest": "^25.2.1",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/parser": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const version = '2.3.39';
export const version = '2.3.40';

// G2 自定义能力透出
import * as G2 from '@antv/g2';
Expand Down

0 comments on commit f464ac1

Please sign in to comment.