7
7
build-deploy :
8
8
runs-on : ubuntu-18.04
9
9
steps :
10
- - uses : actions/checkout@master
11
-
12
- - name : Setup Node
13
- uses : actions/setup-node@v1
10
+ - uses : actions/checkout@v2
11
+ - uses : actions/setup-node@v2
14
12
with :
15
- node-version : ' 10.x'
16
-
17
- # - name: Cache dependencies
18
- # uses: actions/cache@v1
19
- # with:
20
- # path: ~/.npm
21
- # key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22
- # restore-keys: |
23
- # ${{ runner.os }}-node-
13
+ node-version : 14
24
14
25
15
- run : npm install
26
16
- run : npm run build
@@ -35,37 +25,31 @@ jobs:
35
25
36
26
- name : Generate Changelog
37
27
id : changelog
38
- uses : jaywcjlove/changelog-generator@v1.3.9
28
+ uses : jaywcjlove/changelog-generator@v1.3.10
39
29
with :
40
30
token : ${{ secrets.GITHUB_TOKEN }}
41
31
head-ref : ${{steps.create_tag.outputs.version}}
42
32
filter-author : (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
43
33
filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
44
34
45
35
- name : Create Release
46
- id : create_release
47
- uses : actions/create-release@latest
36
+ uses : ncipollo/release-action@v1
48
37
if : steps.create_tag.outputs.successful
49
- env :
50
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
38
with :
52
- tag_name : ${{ steps.create_tag.outputs.version }}
53
- release_name : ${{ steps.create_tag.outputs.version }}
39
+ token : ${{ secrets.GITHUB_TOKEN }}
40
+ name : ${{ steps.create_tag.outputs.version }}
41
+ tag : ${{ steps.create_tag.outputs.version }}
54
42
body : |
55
- [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-markdown-editor@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
56
-
43
+ [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-markdown-editor@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [](https://github.com/uiwjs/react-markdown-editor/releases) [](https://github.com/uiwjs/react-markdown-editor/network) [](https://github.com/uiwjs/react-markdown-editor/stargazers) [](https://github.com/uiwjs/react-markdown-editor/releases) [](https://bundlephobia.com/result?p=@uiw/react-markdown-editor@${{steps.create_tag.outputs.versionNumber}})
57
44
```bash
58
45
npm i @uiw/react-markdown-editor@${{steps.create_tag.outputs.versionNumber}}
59
46
```
60
47
61
48
${{ steps.changelog.outputs.compareurl }}
62
49
${{ steps.changelog.outputs.changelog }}
63
- draft : false
64
- prerelease : false
65
50
66
- - name : Build and Deploy
67
- uses : peaceiris/actions-gh-pages@v2.5.0
68
- env :
69
- ACTIONS_DEPLOY_KEY : ${{ secrets.ACTIONS_DEPLOY_KEY }}
70
- PUBLISH_BRANCH : gh-pages
71
- PUBLISH_DIR : ./build
51
+ - name : Deploy
52
+ uses : peaceiris/actions-gh-pages@v3
53
+ with :
54
+ github_token : ${{ secrets.GITHUB_TOKEN }}
55
+ publish_dir : ./build
0 commit comments