2222 - run : npm run doc
2323 - run : npm run map
2424
25+ - uses : jaywcjlove/coverage-badges-cli@main
26+ - run : cp -rp coverage build
27+
28+ - name : Generate Contributors Images
29+ uses : jaywcjlove/github-action-contributors@main
30+ with :
31+ filter-author : (renovate\[bot\]|renovate-bot|dependabot\[bot\])
32+ output : build/CONTRIBUTORS.svg
33+ avatarSize : 42
34+
2535 # - run: npm install @jsdevtools/npm-publish -g
2636 # - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
2737
@@ -33,13 +43,26 @@ jobs:
3343
3444 - name : Create Tag
3545 id : create_tag
36- uses : jaywcjlove/create-tag-action@v1.3.5
46+ uses : jaywcjlove/create-tag-action@v1.3.6
3747 with :
3848 package-path : ./package.json
3949
50+ - name : get tag version
51+ id : tag_version
52+ uses : jaywcjlove/changelog-generator@v1.5.0
53+
54+ - name : Deploy
55+ uses : peaceiris/actions-gh-pages@v3
56+ with :
57+ commit_message : ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
58+ github_token : ${{ secrets.GITHUB_TOKEN }}
59+ publish_dir : ./build
60+ user_name : ' github-actions[bot]'
61+ user_email : ' github-actions[bot]@users.noreply.github.com'
62+
4063 - name : Generate Changelog
4164 id : changelog
42- uses : jaywcjlove/changelog-generator@v1.4.8
65+ uses : jaywcjlove/changelog-generator@v1.5.0
4366 with :
4467 token : ${{ secrets.GITHUB_TOKEN }}
4568 head-ref : ${{steps.create_tag.outputs.version}}
@@ -56,18 +79,11 @@ jobs:
5679 body : |
5780 [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-code-preview@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
5881
82+ Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-code-preview/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
83+ Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
84+
5985 ```bash
6086 npm i @uiw/react-code-preview@${{steps.create_tag.outputs.versionNumber}}
6187 ```
6288
63- ${{ steps.changelog.outputs.compareurl }}
64-
6589 ${{ steps.changelog.outputs.changelog }}
66-
67- - name : Deploy
68- uses : peaceiris/actions-gh-pages@v3
69- with :
70- github_token : ${{ secrets.GITHUB_TOKEN }}
71- publish_dir : ./build
72- user_name : ' github-actions[bot]'
73- user_email : ' github-actions[bot]@users.noreply.github.com'
0 commit comments