@@ -14,10 +14,14 @@ jobs:
14
14
node-version : 14
15
15
16
16
- run : npm install
17
- - run : npm i coverage-badges-cli -g
18
17
- run : npm run build
19
18
- run : npm run test:coverage
20
- - run : coverage-badges
19
+
20
+ - name : Create Coverage Badges
21
+ uses : jaywcjlove/coverage-badges-cli@main
22
+ with :
23
+ output : build/badges.svg
24
+
21
25
- run : npm run doc
22
26
- run : npm run bundle
23
27
- run : npm run bundle:min
@@ -30,30 +34,26 @@ jobs:
30
34
output : build/CONTRIBUTORS.svg
31
35
avatarSize : 42
32
36
33
- - name : Create Coverage Badges
34
- uses : jaywcjlove/coverage-badges-cli@main
37
+
38
+ - name : Create Tag
39
+ id : create_tag
40
+ uses : jaywcjlove/create-tag-action@v1.3.6
35
41
with :
36
- output : build/badges.svg
42
+ package-path : ./package.json
43
+
44
+ - name : get tag version
45
+ id : tag_version
46
+ uses : jaywcjlove/changelog-generator@v1.5.0
37
47
38
48
- name : Deploy
39
49
uses : peaceiris/actions-gh-pages@v3
40
50
with :
41
51
github_token : ${{ secrets.GITHUB_TOKEN }}
42
52
publish_dir : ./build
43
53
44
- - run : npm install @jsdevtools/npm-publish -g
45
- - run : npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
46
-
47
- - name : Create Tag
48
- id : create_tag
49
- uses : jaywcjlove/create-tag-action@v1.2.1
50
- with :
51
- token : ${{ secrets.GITHUB_TOKEN }}
52
- package-path : ./package.json
53
-
54
54
- name : Generate Changelog
55
55
id : changelog
56
- uses : jaywcjlove/changelog-generator@v1.4.6
56
+ uses : jaywcjlove/changelog-generator@v1.5.0
57
57
with :
58
58
token : ${{ secrets.GITHUB_TOKEN }}
59
59
head-ref : ${{steps.create_tag.outputs.version}}
@@ -70,10 +70,17 @@ jobs:
70
70
body : |
71
71
[](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-textarea-code-editor@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [](https://bundlephobia.com/result?p=@uiw/react-textarea-code-editor@${{steps.create_tag.outputs.versionNumber}})
72
72
73
+ Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-textarea-code-editor/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
74
+ Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
75
+
73
76
```bash
74
77
npm i @uiw/react-textarea-code-editor@${{steps.create_tag.outputs.versionNumber}}
75
78
```
76
-
77
- ${{ steps.changelog.outputs.compareurl }}
78
79
79
80
${{ steps.changelog.outputs.changelog }}
81
+
82
+ - name : 📦 @uiw/react-textarea-code-editor publish to NPM
83
+ uses : JS-DevTools/npm-publish@v1
84
+ with :
85
+ token : ${{ secrets.NPM_TOKEN }}
86
+ package : ./package.json
0 commit comments