Skip to content

Commit 2483dec

Browse files
committed
chore: update workflows config.
1 parent c1f128d commit 2483dec

File tree

1 file changed

+81
-80
lines changed

1 file changed

+81
-80
lines changed

.github/workflows/ci.yml

Lines changed: 81 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -8,84 +8,84 @@ jobs:
88
build-deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
13-
with:
14-
node-version: 16
15-
16-
- run: npm install
17-
- run: npm run build
18-
- run: npm run test:coverage
19-
20-
- run: npm run doc
21-
22-
- name: Create Coverage Badges
23-
uses: jaywcjlove/coverage-badges-cli@main
24-
with:
25-
output: coverage/badges.svg
26-
27-
- run: npm run bundle
28-
- run: npm run bundle:min
29-
- run: cp -rp coverage build
30-
31-
- name: Generate Contributors Images
32-
uses: jaywcjlove/github-action-contributors@main
33-
with:
34-
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
35-
output: build/CONTRIBUTORS.svg
36-
avatarSize: 42
37-
38-
39-
- name: Create Tag
40-
id: create_tag
41-
uses: jaywcjlove/create-tag-action@main
42-
with:
43-
package-path: ./package.json
44-
45-
- name: get tag version
46-
id: tag_version
47-
uses: jaywcjlove/changelog-generator@main
48-
49-
- name: Deploy
50-
uses: peaceiris/actions-gh-pages@v3
51-
with:
52-
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
53-
github_token: ${{ secrets.GITHUB_TOKEN }}
54-
publish_dir: ./build
55-
56-
- name: Generate Changelog
57-
id: changelog
58-
uses: jaywcjlove/changelog-generator@main
59-
with:
60-
token: ${{ secrets.GITHUB_TOKEN }}
61-
head-ref: ${{steps.create_tag.outputs.version}}
62-
filter-author: (小弟调调™|Renovate Bot)
63-
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
64-
65-
- name: Create Release
66-
uses: ncipollo/release-action@v1
67-
if: steps.create_tag.outputs.successful
68-
with:
69-
token: ${{ secrets.GITHUB_TOKEN }}
70-
name: ${{ steps.create_tag.outputs.version }}
71-
tag: ${{ steps.create_tag.outputs.version }}
72-
body: |
73-
[![](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}})
74-
75-
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-textarea-code-editor/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
76-
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
77-
78-
```bash
79-
npm i @uiw/react-textarea-code-editor@${{steps.create_tag.outputs.versionNumber}}
80-
```
81-
82-
${{ steps.changelog.outputs.changelog }}
83-
84-
- name: 📦 @uiw/react-textarea-code-editor publish to NPM
85-
uses: JS-DevTools/npm-publish@v1
86-
with:
87-
token: ${{ secrets.NPM_TOKEN }}
88-
package: ./package.json
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 16
15+
registry-url: https://npm.pkg.github.com
16+
17+
- run: npm install
18+
- run: npm run build
19+
- run: npm run test:coverage
20+
21+
- run: npm run doc
22+
23+
- name: Create Coverage Badges
24+
uses: jaywcjlove/coverage-badges-cli@main
25+
with:
26+
output: coverage/badges.svg
27+
28+
- run: npm run bundle
29+
- run: npm run bundle:min
30+
- run: cp -rp coverage build
31+
32+
- name: Generate Contributors Images
33+
uses: jaywcjlove/github-action-contributors@main
34+
with:
35+
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
36+
output: build/CONTRIBUTORS.svg
37+
avatarSize: 42
38+
39+
- name: Create Tag
40+
id: create_tag
41+
uses: jaywcjlove/create-tag-action@main
42+
with:
43+
package-path: ./package.json
44+
45+
- name: get tag version
46+
id: tag_version
47+
uses: jaywcjlove/changelog-generator@main
48+
49+
- name: Deploy
50+
uses: peaceiris/actions-gh-pages@v3
51+
with:
52+
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
53+
github_token: ${{ secrets.GITHUB_TOKEN }}
54+
publish_dir: ./build
55+
56+
- name: Generate Changelog
57+
id: changelog
58+
uses: jaywcjlove/changelog-generator@main
59+
with:
60+
token: ${{ secrets.GITHUB_TOKEN }}
61+
head-ref: ${{steps.create_tag.outputs.version}}
62+
filter-author: (小弟调调™|Renovate Bot)
63+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
64+
65+
- name: Create Release
66+
uses: ncipollo/release-action@v1
67+
if: steps.create_tag.outputs.successful
68+
with:
69+
token: ${{ secrets.GITHUB_TOKEN }}
70+
name: ${{ steps.create_tag.outputs.version }}
71+
tag: ${{ steps.create_tag.outputs.version }}
72+
body: |
73+
[![](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}})
74+
75+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-textarea-code-editor/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
76+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
77+
78+
```bash
79+
npm i @uiw/react-textarea-code-editor@${{steps.create_tag.outputs.versionNumber}}
80+
```
81+
82+
${{ steps.changelog.outputs.changelog }}
83+
84+
- name: 📦 @uiw/react-textarea-code-editor publish to NPM
85+
run: npm publish
86+
continue-on-error: true
87+
env:
88+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
8989

9090
outputs:
9191
successful: ${{steps.create_tag.outputs.successful }}
@@ -113,7 +113,8 @@ jobs:
113113
data: |
114114
{ "name": "@uiwjs/react-textarea-code-editor" }
115115
116-
- run: npm publish
117-
if: success() || failure()
116+
- name: 📦 @uiwjs/react-textarea-code-editor publish to NPM
117+
run: npm publish
118+
continue-on-error: true
118119
env:
119120
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)