Skip to content

Commit 44dcf60

Browse files
committed
chore: update workflow config.
1 parent aa5a066 commit 44dcf60

File tree

1 file changed

+57
-55
lines changed

1 file changed

+57
-55
lines changed

.github/workflows/ci.yml

Lines changed: 57 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -8,67 +8,69 @@ jobs:
88
build-deploy:
99
runs-on: ubuntu-18.04
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
13-
with:
14-
node-version: 16
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 16
1515

16-
- run: npm install
17-
- run: npm run build
18-
- run: npm run test
19-
- run: npm run coverage
16+
- run: npm install
17+
- run: npm run build
18+
- run: npm run test
19+
- run: npm run coverage
2020

21-
- run: cp -rp coverage dist
21+
- run: cp -rp coverage dist
2222

23-
- name: Create Coverage Badges
24-
uses: jaywcjlove/coverage-badges-cli@main
25-
with:
26-
style: flat
27-
source: coverage/coverage-summary.json
28-
output: dist/badges.svg
23+
- name: Create Coverage Badges
24+
uses: jaywcjlove/coverage-badges-cli@main
25+
with:
26+
style: flat
27+
source: coverage/coverage-summary.json
28+
output: dist/badges.svg
2929

30-
- name: Generate Contributors Images
31-
uses: jaywcjlove/github-action-contributors@main
32-
with:
33-
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
34-
output: dist/CONTRIBUTORS.svg
35-
avatarSize: 42
30+
- name: Generate Contributors Images
31+
uses: jaywcjlove/github-action-contributors@main
32+
with:
33+
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
34+
output: dist/CONTRIBUTORS.svg
35+
avatarSize: 42
3636

37-
- name: Create Tag
38-
id: create_tag
39-
uses: jaywcjlove/create-tag-action@v1.3.7
37+
- name: Create Tag
38+
id: create_tag
39+
uses: jaywcjlove/create-tag-action@v1.3.7
40+
with:
41+
package-path: ./package.json
4042

41-
- name: Deploy
42-
uses: peaceiris/actions-gh-pages@v3
43-
with:
44-
github_token: ${{ secrets.GITHUB_TOKEN }}
45-
publish_dir: ./dist
46-
user_name: github-actions[bot]
47-
user_email: github-actions[bot]@users.noreply.github.com
48-
49-
- name: Generate changelog
50-
id: changelog
51-
uses: jaywcjlove/changelog-generator@main
52-
with:
53-
token: ${{ secrets.GITHUB_TOKEN }}
54-
filter-author: (jaywcjlove|小弟调调™|dependabot|renovate\\[bot\\]|dependabot\\[bot\\]|Renovate Bot)
55-
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
43+
- name: Deploy
44+
uses: peaceiris/actions-gh-pages@v3
45+
with:
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
publish_dir: ./dist
48+
user_name: github-actions[bot]
49+
user_email: github-actions[bot]@users.noreply.github.com
50+
51+
- name: Generate changelog
52+
id: changelog
53+
uses: jaywcjlove/changelog-generator@main
54+
with:
55+
token: ${{ secrets.GITHUB_TOKEN }}
56+
filter-author: (jaywcjlove|小弟调调™|dependabot|renovate\\[bot\\]|dependabot\\[bot\\]|Renovate Bot)
57+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
5658

57-
- name: Create Release
58-
uses: ncipollo/release-action@v1
59-
if: steps.create_tag.outputs.successful
60-
with:
61-
token: ${{ secrets.GITHUB_TOKEN }}
62-
name: ${{ steps.create_tag.outputs.version }}
63-
tag: ${{ steps.create_tag.outputs.version }}
64-
body: |
65-
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@wcjiang/whereis@${{steps.changelog.outputs.version}}/file/README.md)
66-
67-
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/whereis/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
68-
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
59+
- name: Create Release
60+
uses: ncipollo/release-action@v1
61+
if: steps.create_tag.outputs.successful
62+
with:
63+
token: ${{ secrets.GITHUB_TOKEN }}
64+
name: ${{ steps.create_tag.outputs.version }}
65+
tag: ${{ steps.create_tag.outputs.version }}
66+
body: |
67+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@wcjiang/whereis@${{steps.changelog.outputs.version}}/file/README.md)
68+
69+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/whereis/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
70+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
6971
70-
```shell
71-
npm i @wcjiang/whereis@${{steps.create_tag.outputs.versionNumber}}
72-
```
72+
```shell
73+
npm i @wcjiang/whereis@${{steps.create_tag.outputs.versionNumber}}
74+
```
7375
74-
${{ steps.changelog.outputs.changelog }}
76+
${{ steps.changelog.outputs.changelog }}

0 commit comments

Comments
 (0)