Skip to content

Commit 5cba19a

Browse files
committed
chore: update workflows config.
1 parent 46a6543 commit 5cba19a

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Deploy
1+
name: CI
22
on:
33
push:
44
branches:
@@ -16,18 +16,34 @@ jobs:
1616
- run: npm run build
1717
- run: npm run doc
1818

19+
- name: Generate Contributors Images
20+
uses: jaywcjlove/github-action-contributors@main
21+
with:
22+
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
23+
output: build/CONTRIBUTORS.svg
24+
avatarSize: 42
25+
1926
- name: Create Tag
2027
id: create_tag
21-
uses: jaywcjlove/create-tag-action@v1.3.5
28+
uses: jaywcjlove/create-tag-action@v1.3.6
2229
with:
23-
token: ${{ secrets.GITHUB_TOKEN }}
2430
package-path: ./package.json
2531

32+
- name: get tag version
33+
id: tag_version
34+
uses: jaywcjlove/changelog-generator@v1.5.0
35+
36+
- name: Deploy
37+
uses: peaceiris/actions-gh-pages@v3
38+
with:
39+
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
publish_dir: ./build
42+
2643
- name: Generate Changelog
2744
id: changelog
28-
uses: jaywcjlove/changelog-generator@v1.4.8
45+
uses: jaywcjlove/changelog-generator@v1.5.0
2946
with:
30-
token: ${{ secrets.GITHUB_TOKEN }}
3147
head-ref: ${{steps.create_tag.outputs.version}}
3248
filter-author: (小弟调调™)
3349
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
@@ -42,23 +58,15 @@ jobs:
4258
body: |
4359
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-markdown-editor@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-markdown-editor)](https://bundlephobia.com/result?p=@uiw/react-markdown-editor@${{steps.create_tag.outputs.versionNumber}}) [![npm version](https://img.shields.io/npm/v/@uiw/react-markdown-editor.svg)](https://www.npmjs.com/package/@uiw/react-markdown-editor)
4460
61+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-markdown-editor/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
62+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
63+
4564
```bash
4665
npm i @uiw/react-markdown-editor@${{steps.create_tag.outputs.versionNumber}}
4766
```
4867
49-
${{ steps.changelog.outputs.compareurl }}
50-
5168
${{ steps.changelog.outputs.changelog }}
5269
53-
- name: Deploy
54-
uses: peaceiris/actions-gh-pages@v3
55-
with:
56-
github_token: ${{ secrets.GITHUB_TOKEN }}
57-
publish_dir: ./build
58-
59-
# - run: npm install @jsdevtools/npm-publish -g
60-
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
61-
6270
- name: 📦 @uiw/react-markdown-editor 📦
6371
uses: JS-DevTools/npm-publish@v1
6472
with:

0 commit comments

Comments
 (0)