6
6
7
7
jobs :
8
8
build-deploy :
9
- runs-on : ubuntu-18 .04
9
+ runs-on : ubuntu-20 .04
10
10
steps :
11
- - uses : actions/checkout@v2
12
- - uses : actions/setup-node@v2
13
- with :
14
- node-version : 14
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-node@v2
13
+ with :
14
+ node-version : 16
15
15
16
- - run : npm install
17
- - run : npm run hoist
16
+ - run : npm install
17
+ - run : npm run hoist
18
18
19
- - run : npm run build:wc
20
- - run : npm run build
21
- - run : npm run bundle
22
- - run : npm run bundle:min
23
- - run : npm run doc
19
+ - run : npm run build:wc
20
+ - run : npm run build
21
+ - run : npm run bundle
22
+ - run : npm run bundle:min
23
+ - run : npm run doc
24
24
25
- - name : Generate Contributors Images
26
- uses : jaywcjlove/github-action-contributors@main
27
- with :
28
- filter-author : (renovate\[bot\]|renovate-bot|dependabot\[bot\])
29
- output : website/build/CONTRIBUTORS.svg
30
- avatarSize : 42
25
+ - name : Generate Contributors Images
26
+ uses : jaywcjlove/github-action-contributors@main
27
+ with :
28
+ filter-author : (renovate\[bot\]|renovate-bot|dependabot\[bot\])
29
+ output : website/build/CONTRIBUTORS.svg
30
+ avatarSize : 42
31
31
32
- - name : Create Tag
33
- id : create_tag
34
- uses :
jaywcjlove/[email protected]
35
- with :
36
- package-path : ./react/package.json
32
+ - name : Create Tag
33
+ id : create_tag
34
+ uses :
jaywcjlove/[email protected]
35
+ with :
36
+ package-path : ./react/package.json
37
37
38
- - name : get tag version
39
- id : tag_version
40
- uses :
jaywcjlove/[email protected]
38
+ - name : get tag version
39
+ id : tag_version
40
+ uses :
jaywcjlove/[email protected]
41
41
42
- - name : Deploy
43
- uses : peaceiris/actions-gh-pages@v3
44
- with :
45
- user_name : ' github-actions[bot]'
46
- user_email : ' github-actions[bot]@users.noreply.github.com'
47
- commit_message : ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
48
- github_token : ${{ secrets.GITHUB_TOKEN }}
49
- publish_dir : ./website/build
42
+ - name : Deploy
43
+ uses : peaceiris/actions-gh-pages@v3
44
+ with :
45
+ user_name : ' github-actions[bot]'
46
+ user_email : ' github-actions[bot]@users.noreply.github.com'
47
+ commit_message : ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
48
+ github_token : ${{ secrets.GITHUB_TOKEN }}
49
+ publish_dir : ./website/build
50
50
51
- - name : Generate Changelog
52
- id : changelog
53
- uses :
jaywcjlove/[email protected]
54
- with :
55
- token : ${{ secrets.GITHUB_TOKEN }}
56
- head-ref : ${{steps.create_tag.outputs.version}}
57
- filter-author : (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
58
- filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
51
+ - name : Generate Changelog
52
+ id : changelog
53
+ uses :
jaywcjlove/[email protected]
54
+ with :
55
+ token : ${{ secrets.GITHUB_TOKEN }}
56
+ head-ref : ${{steps.create_tag.outputs.version}}
57
+ filter-author : (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
58
+ filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
59
59
60
- - name : Create Release
61
- uses : ncipollo/release-action@v1
62
- if : steps.create_tag.outputs.successful
63
- with :
64
- token : ${{ secrets.GITHUB_TOKEN }}
65
- name : ${{ steps.create_tag.outputs.version }}
66
- tag : ${{ steps.create_tag.outputs.version }}
67
- body : |
68
- [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-github-corners@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [](https://github.com/uiwjs/react-github-corners/releases) [](https://github.com/uiwjs/react-github-corners/network) [](https://github.com/uiwjs/react-github-corners/stargazers) [](https://github.com/uiwjs/react-github-corners/releases) [](https://bundlephobia.com/result?p=@uiw/react-github-corners@${{steps.create_tag.outputs.versionNumber}})
69
-
70
- Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-github-corners/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
71
- Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
60
+ - name : Create Release
61
+ uses : ncipollo/release-action@v1
62
+ if : steps.create_tag.outputs.successful
63
+ with :
64
+ token : ${{ secrets.GITHUB_TOKEN }}
65
+ name : ${{ steps.create_tag.outputs.version }}
66
+ tag : ${{ steps.create_tag.outputs.version }}
67
+ body : |
68
+ [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-github-corners@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [](https://github.com/uiwjs/react-github-corners/releases) [](https://github.com/uiwjs/react-github-corners/network) [](https://github.com/uiwjs/react-github-corners/stargazers) [](https://github.com/uiwjs/react-github-corners/releases) [](https://bundlephobia.com/result?p=@uiw/react-github-corners@${{steps.create_tag.outputs.versionNumber}})
69
+
70
+ Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-github-corners/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
71
+ Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
72
72
73
- ${{ steps.changelog.outputs.changelog }}
74
-
75
- ```bash
76
- npm i @uiw/react-github-corners@${{steps.create_tag.outputs.versionNumber}}
77
- ```
78
-
79
- ```bash
80
- npm i @uiw/github-corners@${{steps.create_tag.outputs.versionNumber}}
81
- ```
73
+ ${{ steps.changelog.outputs.changelog }}
74
+
75
+ ```bash
76
+ npm i @uiw/react-github-corners@${{steps.create_tag.outputs.versionNumber}}
77
+ ```
78
+
79
+ ```bash
80
+ npm i @uiw/github-corners@${{steps.create_tag.outputs.versionNumber}}
81
+ ```
82
82
83
- - name : 📦 @uiw/react-github-corners publish to NPM
84
- uses : JS-DevTools/npm-publish@v1
85
- with :
86
- token : ${{ secrets.NPM_TOKEN }}
87
- package : ./react/package.json
83
+ - name : 📦 @uiw/react-github-corners publish to NPM
84
+ uses : JS-DevTools/npm-publish@v1
85
+ with :
86
+ token : ${{ secrets.NPM_TOKEN }}
87
+ package : ./react/package.json
88
88
89
- - name : 📦 @uiw/github-corners publish to NPM
90
- uses : JS-DevTools/npm-publish@v1
91
- with :
92
- token : ${{ secrets.NPM_TOKEN }}
93
- package : ./web-component/package.json
94
-
89
+ - name : 📦 @uiw/github-corners publish to NPM
90
+ uses : JS-DevTools/npm-publish@v1
91
+ with :
92
+ token : ${{ secrets.NPM_TOKEN }}
93
+ package : ./web-component/package.json
94
+
0 commit comments