Skip to content

Commit a3728ac

Browse files
committed
chore: update workflows cofnig.
1 parent 800169f commit a3728ac

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

.github/workflows/ci.marster.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,27 @@ jobs:
3333
output: build/CONTRIBUTORS.svg
3434
avatarSize: 42
3535

36-
- name: Deploy
37-
uses: peaceiris/actions-gh-pages@v3
38-
with:
39-
github_token: ${{ secrets.GITHUB_TOKEN }}
40-
publish_dir: ./build
41-
42-
- run: npm install @jsdevtools/npm-publish -g
43-
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
44-
4536
- name: Is a tag created auto?
4637
id: create_tag
47-
uses: jaywcjlove/create-tag-action@v1.2.1
38+
uses: jaywcjlove/create-tag-action@v1.3.6
4839
with:
4940
token: ${{ secrets.GITHUB_TOKEN }}
5041
package-path: ./package.json
5142

43+
- name: get tag version
44+
id: tag_version
45+
uses: jaywcjlove/[email protected]
46+
47+
- name: Deploy
48+
uses: peaceiris/actions-gh-pages@v3
49+
with:
50+
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
publish_dir: ./build
53+
5254
- name: Generate Changelog
5355
id: changelog
54-
uses: jaywcjlove/changelog-generator@v1.4.6
56+
uses: jaywcjlove/changelog-generator@v1.5.0
5557
if: steps.create_tag.outputs.successful
5658
with:
5759
token: ${{ secrets.GITHUB_TOKEN }}
@@ -69,14 +71,21 @@ jobs:
6971
body: |
7072
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
7173
72-
${{ steps.changelog.outputs.compareurl }}
74+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-markdown-preview/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
75+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
7376
7477
${{ steps.changelog.outputs.changelog }}
7578
7679
```bash
7780
npm i @uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}}
7881
```
7982
83+
- name: 📦 @uiw/react-markdown-preview publish to NPM
84+
uses: JS-DevTools/npm-publish@v1
85+
with:
86+
token: ${{ secrets.NPM_TOKEN }}
87+
package: ./package.json
88+
8089
- name: Coveralls
8190
uses: coverallsapp/github-action@master
8291
with:

0 commit comments

Comments
 (0)