Skip to content

Commit

Permalink
feat(custom): ci
Browse files Browse the repository at this point in the history
conventional-changelog
  • Loading branch information
h7ml committed Aug 1, 2022
1 parent dbea0b9 commit 2b1b716
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/boomper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
updates:
- path: README.md
pattern: 'uses = "release-drafter/release-drafter@(.*)"'
39 changes: 39 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
template: |
# What's Changed
$CHANGES
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
categories:
- title: 'Breaking'
label: 'type: breaking'
- title: 'New'
label: 'type: feature'
- title: 'Bug Fixes'
label: 'type: bug'
- title: 'Maintenance'
label: 'type: maintenance'
- title: 'Documentation'
label: 'type: docs'
- title: 'Other changes'
- title: 'Dependency Updates'
label: 'type: dependencies'
collapse-after: 5

version-resolver:
major:
labels:
- 'type: breaking'
minor:
labels:
- 'type: feature'
patch:
labels:
- 'type: bug'
- 'type: maintenance'
- 'type: docs'
- 'type: dependencies'
- 'type: security'

exclude-labels:
- 'skip-changelog'
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
node-version: 16.x
registry-url: "https://registry.npmjs.org"

- uses: release-drafter/release-drafter@master
with:
version: ${{ steps.version.outputs.version }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}

- name: Setup
run: npm i -g @antfu/ni pnpm

Expand All @@ -32,3 +39,13 @@ jobs:
run: pnpm -r publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

- name: version
id: version
run: |
tag=${GITHUB_REF/refs\/tags\//}
version=${tag#v}
major=${version%%.*}
echo "::set-output name=tag::${tag}"
echo "::set-output name=version::${version}"
echo "::set-output name=major::${major}"
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# [2.1.0](https://github.com/h7ml/vue-amis-sdk/compare/v2.0.2-beta.1...v2.1.0) (2022-08-01)



## [2.0.2-beta.1](https://github.com/h7ml/vue-amis-sdk/compare/v2.0.1-beta.1...v2.0.2-beta.1) (2022-07-12)


### Features

* **2.0.1-beta.1): build(2.0.1-beta.1:** vue-amis-sdk@2.0.1-beta.1 ([dad4cb4](https://github.com/h7ml/vue-amis-sdk/commit/dad4cb495602e325290013f52000fe583ec924cc))
* **version:** 2.0.2-beta.1 ([82cd9ee](https://github.com/h7ml/vue-amis-sdk/commit/82cd9ee1351f504a0f0d61f28a70510ed4c45a19))



## [2.0.1-beta.1](https://github.com/h7ml/vue-amis-sdk/compare/050514a88ce34398caee71e65c95a2d1bd261237...v2.0.1-beta.1) (2022-07-12)


### Bug Fixes

* **action:** fix(action): ([2165ac4](https://github.com/h7ml/vue-amis-sdk/commit/2165ac42aebf23aadb8e65128989f21dd9558cf9))
* **action:** release ([a7dff30](https://github.com/h7ml/vue-amis-sdk/commit/a7dff30c57c2fdf533362b32bfaa8f2ca2d1dcb6))
* **amis-editor): fix(action:** release ([e13200d](https://github.com/h7ml/vue-amis-sdk/commit/e13200d82b6e64048106da14f40887a60b9063eb))
* https://vercel.com/h7ml/vue-amis-sdk/67qngLgU6Ss7mZ92LTNaMnbzoTts ([050514a](https://github.com/h7ml/vue-amis-sdk/commit/050514a88ce34398caee71e65c95a2d1bd261237))
* publishConfig ([e527d7b](https://github.com/h7ml/vue-amis-sdk/commit/e527d7bcec46c88ff05d0953e31910dcd7b1ffcf))
* **sass:** 添加dart-sass && 删除monaco 编辑器 ([b035a1a](https://github.com/h7ml/vue-amis-sdk/commit/b035a1a53ec4277fea34f522219e1f3b3d60b232))
* script ([fc7c199](https://github.com/h7ml/vue-amis-sdk/commit/fc7c19922452d3fec477ce89bd312c04ee94eb61))
* script ([454a42b](https://github.com/h7ml/vue-amis-sdk/commit/454a42be26d10fb985ace7c1251a7cb701f48966))
* script ([1bbb07b](https://github.com/h7ml/vue-amis-sdk/commit/1bbb07b52a5743ee7d6674d280684d6025e957f7))
* script ([4b6b3db](https://github.com/h7ml/vue-amis-sdk/commit/4b6b3db2de50464d53e85f94f0a68c8328106ed8))
* **style:** icon ([c4163ad](https://github.com/h7ml/vue-amis-sdk/commit/c4163adea4c47a72e54f64d0602e0578614547c0))
* **style:** sass ([baad8e1](https://github.com/h7ml/vue-amis-sdk/commit/baad8e19492e6499e0ad240b392c00aa03fd7536))


### Features

* **action:** deploy ([7ed215a](https://github.com/h7ml/vue-amis-sdk/commit/7ed215a9f92b5ffcf8d3a312843ed911882b9f86))
* **dependencies:** 支持amis2.0 ([94fff71](https://github.com/h7ml/vue-amis-sdk/commit/94fff7108db1c7eb827e90b2ce178beb0b21c942))
* MonacoWebpackPlugin ([f5076e0](https://github.com/h7ml/vue-amis-sdk/commit/f5076e0b18bcdc122c8638cd2cd72283c0d7e27f))
* **vue-amis-sdk@2.0.0-beta.2:** 修复icon 图标丢失 ([fa165cb](https://github.com/h7ml/vue-amis-sdk/commit/fa165cbc010278d4a88f33b848db861922396c04))



4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"lint:fix": "vue-cli-service lint --fix",
"lib": "vue-cli-service build --target lib --name vue-amis-sdk --dest sdk packages/index.js",
"prepare": "husky install",
"commit": "git-cz"
"commit": "git-cz",
"genlog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},
"dependencies": {
"@babel/core": "^7.17.7",
Expand All @@ -39,6 +40,7 @@
"amis-ui": "^2.1.0",
"axios": "^0.27.2",
"compression-webpack-plugin": "6.1.1",
"conventional-changelog-cli": "^2.2.2",
"core-js": "^3.6.5",
"css-loader": "^6.6.0",
"http-proxy-middleware": "^2.0.6",
Expand Down

0 comments on commit 2b1b716

Please sign in to comment.