Skip to content

Commit f049598

Browse files
committed
chore: update workflows config.
1 parent 4d25484 commit f049598

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Deploy
1+
name: CI
22
on:
33
push:
44
branches:
@@ -18,8 +18,29 @@ jobs:
1818
- run: npm install
1919
- run: npm run build
2020
- run: npm run doc
21+
- run: npm run bundle
22+
- run: npm run bundle:min
23+
- run: npm run coverage
2124
- run: npm run type-check
2225

26+
- name: Generate Contributors Images
27+
uses: jaywcjlove/github-action-contributors@main
28+
with:
29+
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
30+
output: build/CONTRIBUTORS.svg
31+
avatarSize: 42
32+
33+
- name: Create Coverage Badges
34+
uses: jaywcjlove/coverage-badges-cli@main
35+
with:
36+
output: build/badges.svg
37+
38+
- name: Deploy
39+
uses: peaceiris/actions-gh-pages@v3
40+
with:
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
publish_dir: ./build
43+
2344
- name: Create Tag
2445
id: create_tag
2546
uses: jaywcjlove/[email protected]
@@ -35,12 +56,6 @@ jobs:
3556
filter-author: (renovate-bot|小弟调调™|dependabot|dependabot\[bot\]|Renovate Bot)
3657
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
3758

38-
- name: Deploy
39-
uses: peaceiris/actions-gh-pages@v3
40-
with:
41-
github_token: ${{ secrets.GITHUB_TOKEN }}
42-
publish_dir: ./build
43-
4459
- name: Create Release
4560
uses: ncipollo/release-action@v1
4661
if: steps.create_tag.outputs.successful

0 commit comments

Comments
 (0)