@@ -54,16 +54,26 @@ jobs:
54
54
</body></html>
55
55
EOF
56
56
57
- - name : Create Tag
57
+ - name : Is a tag created auto?
58
58
id : create_tag
59
- uses : jaywcjlove/create-tag-action@v1.2.1
59
+ uses : jaywcjlove/create-tag-action@v1.3.6
60
60
with :
61
- token : ${{ secrets.GITHUB_TOKEN }}
62
61
package-path : ./package.json
63
62
63
+ - name : get tag version
64
+ id : tag_version
65
+ uses : jaywcjlove/changelog-generator@v1.5.0
66
+
67
+ - name : Deploy
68
+ uses : peaceiris/actions-gh-pages@v3
69
+ with :
70
+ commit_message : ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
71
+ github_token : ${{ secrets.GITHUB_TOKEN }}
72
+ publish_dir : ./build
73
+
64
74
- name : Generate Changelog
65
75
id : changelog
66
- uses : jaywcjlove/changelog-generator@v1.4.6
76
+ uses : jaywcjlove/changelog-generator@v1.5.0
67
77
if : steps.create_tag.outputs.successful
68
78
with :
69
79
token : ${{ secrets.GITHUB_TOKEN }}
@@ -81,20 +91,19 @@ jobs:
81
91
body : |
82
92
[](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/reset.css@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
83
93
94
+ Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/reset-css/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
95
+ Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
96
+
84
97
```bash
85
98
npm i @uiw/reset.css@${{steps.create_tag.outputs.versionNumber}}
86
99
```
87
-
88
- ${{ steps.changelog.outputs.compareurl }}
89
-
100
+
90
101
${{ steps.changelog.outputs.changelog }}
91
102
92
103
- run : git status
93
- - run : npm install @jsdevtools/npm-publish -g
94
- - run : npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
95
104
96
- - name : Deploy
97
- uses : peaceiris/actions-gh-pages@v3
105
+ - name : 📦 @uiw/reset.css publish to NPM
106
+ uses : JS-DevTools/npm-publish@v1
98
107
with :
99
- github_token : ${{ secrets.GITHUB_TOKEN }}
100
- publish_dir : ./build
108
+ token : ${{ secrets.NPM_TOKEN }}
109
+ package : ./package.json
0 commit comments