1
- name : Build & Deploy
1
+ name : CI
2
2
on :
3
3
push :
4
4
branches :
@@ -16,23 +16,34 @@ jobs:
16
16
- run : npm run build
17
17
- run : npm run doc
18
18
19
- - name : Deploy
20
- uses : peaceiris/actions-gh-pages@v3
19
+ - name : Generate Contributors Images
20
+ uses : jaywcjlove/github-action-contributors@main
21
21
with :
22
- github_token : ${{ secrets.GITHUB_TOKEN }}
23
- publish_dir : ./build
22
+ filter-author : (renovate\[bot\]|renovate-bot|dependabot\[bot\])
23
+ output : build/CONTRIBUTORS.svg
24
+ avatarSize : 42
24
25
25
26
- name : Is a tag created auto?
26
27
id : create_tag
27
- uses :
jaywcjlove/[email protected] .5
28
+ uses :
jaywcjlove/[email protected] .6
28
29
with :
29
30
package-path : ./package.json
30
31
32
+ - name : get tag version
33
+ id : tag_version
34
+ uses :
jaywcjlove/[email protected]
35
+
36
+ - name : Deploy
37
+ uses : peaceiris/actions-gh-pages@v3
38
+ with :
39
+ commit_message : ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
40
+ github_token : ${{ secrets.GITHUB_TOKEN }}
41
+ publish_dir : ./build
42
+
31
43
- name : Generate Changelog
32
44
id : changelog
33
- uses : jaywcjlove/changelog-generator@v1.4.8
45
+ uses : jaywcjlove/changelog-generator@v1.5.0
34
46
with :
35
- token : ${{ secrets.GITHUB_TOKEN }}
36
47
head-ref : ${{steps.create_tag.outputs.version}}
37
48
filter-author : (renovate-bot|dependabot|dependabot\[bot\]|Renovate Bot)
38
49
filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
@@ -47,14 +58,20 @@ jobs:
47
58
body : |
48
59
[](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codepen@${{ steps.create_tag.outputs.versionNumber }}/file/README.md)
49
60
61
+ Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-codepen/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
62
+ Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
63
+
50
64
```bash
51
65
npm i @uiw/react-codepen@${{ steps.create_tag.outputs.versionNumber }}
52
66
```
53
-
54
- ${{ steps.changelog.outputs.compareurl }}
55
67
56
68
${{ steps.changelog.outputs.changelog }}
57
69
58
- - run : git status
59
- - run : npm install @jsdevtools/npm-publish -g
60
- - run : npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
70
+ - uses : JS-DevTools/npm-publish@v1
71
+ with :
72
+ token : ${{ secrets.NPM_TOKEN }}
73
+ package : ./package.json
74
+
75
+ # - run: git status
76
+ # - run: npm install @jsdevtools/npm-publish -g
77
+ # - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
0 commit comments