Skip to content

Commit c6d38af

Browse files
committed
chore: update workflows config.
1 parent 24e721b commit c6d38af

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

.github/workflows/ci.yml

+25-18
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ jobs:
1414
node-version: 14
1515

1616
- run: npm install
17-
- run: npm i coverage-badges-cli -g
1817
- run: npm run build
1918
- 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+
2125
- run: npm run doc
2226
- run: npm run bundle
2327
- run: npm run bundle:min
@@ -30,30 +34,26 @@ jobs:
3034
output: build/CONTRIBUTORS.svg
3135
avatarSize: 42
3236

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
3541
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
3747

3848
- name: Deploy
3949
uses: peaceiris/actions-gh-pages@v3
4050
with:
4151
github_token: ${{ secrets.GITHUB_TOKEN }}
4252
publish_dir: ./build
4353

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-
5454
- name: Generate Changelog
5555
id: changelog
56-
uses: jaywcjlove/changelog-generator@v1.4.6
56+
uses: jaywcjlove/changelog-generator@v1.5.0
5757
with:
5858
token: ${{ secrets.GITHUB_TOKEN }}
5959
head-ref: ${{steps.create_tag.outputs.version}}
@@ -70,10 +70,17 @@ jobs:
7070
body: |
7171
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-textarea-code-editor@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-textarea-code-editor)](https://bundlephobia.com/result?p=@uiw/react-textarea-code-editor@${{steps.create_tag.outputs.versionNumber}})
7272
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+
7376
```bash
7477
npm i @uiw/react-textarea-code-editor@${{steps.create_tag.outputs.versionNumber}}
7578
```
76-
77-
${{ steps.changelog.outputs.compareurl }}
7879
7980
${{ 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

Comments
 (0)