1
- name : Build and Deploy
1
+ name : Build & Deploy
2
2
on :
3
3
push :
4
4
branches :
@@ -17,14 +17,13 @@ jobs:
17
17
node-version : 14
18
18
19
19
- run : npm install
20
- - run : npm run build
21
20
- run : npm run coverage
22
21
- run : npm run doc
23
22
24
23
- run : npm install @jsdevtools/npm-publish -g
25
24
- run : npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
26
25
27
- - name : Create Tag
26
+ - name : Is a tag created auto?
28
27
id : create_tag
29
28
uses :
jaywcjlove/[email protected]
30
29
with :
@@ -34,18 +33,13 @@ jobs:
34
33
- name : Generate Changelog
35
34
id : changelog
36
35
uses :
jaywcjlove/[email protected]
36
+ if : steps.create_tag.outputs.successful
37
37
with :
38
38
token : ${{ secrets.GITHUB_TOKEN }}
39
- head-ref : ${{steps.create_tag.outputs.version}}
39
+ head-ref : ${{ steps.create_tag.outputs.version }}
40
40
filter-author : (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
41
41
filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
42
42
43
- - name : Deploy
44
- uses : peaceiris/actions-gh-pages@v3
45
- with :
46
- github_token : ${{ secrets.GITHUB_TOKEN }}
47
- publish_dir : ./build
48
-
49
43
- name : Create Release
50
44
uses : ncipollo/release-action@v1
51
45
if : steps.create_tag.outputs.successful
@@ -54,16 +48,22 @@ jobs:
54
48
name : ${{ steps.create_tag.outputs.version }}
55
49
tag : ${{ steps.create_tag.outputs.version }}
56
50
body : |
57
- [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [](https://bundlephobia.com/result?p=@uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}})
51
+ [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
58
52
59
- ```shell
53
+ ```bash
60
54
npm i @uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}}
61
55
```
62
56
63
57
${{ steps.changelog.outputs.compareurl }}
64
-
58
+
65
59
${{ steps.changelog.outputs.changelog }}
66
60
61
+ - name : Deploy
62
+ uses : peaceiris/actions-gh-pages@v3
63
+ with :
64
+ github_token : ${{ secrets.GITHUB_TOKEN }}
65
+ publish_dir : ./build
66
+
67
67
- name : Coveralls
68
68
uses : coverallsapp/github-action@master
69
69
with :
0 commit comments