Skip to content

Commit 1203cf2

Browse files
committed
chore: update workflows config.
1 parent 84069cf commit 1203cf2

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,28 @@ jobs:
1919
- run: npm run test:coverage
2020
- run: coverage-badges
2121
- run: npm run doc
22+
- run: npm run bundle
23+
- run: npm run bundle:min
2224
- run: cp -rp coverage build
2325

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+
2444
- run: npm install @jsdevtools/npm-publish -g
2545
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
2646

@@ -39,19 +59,6 @@ jobs:
3959
head-ref: ${{steps.create_tag.outputs.version}}
4060
filter-author: (小弟调调™|Renovate Bot)
4161
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
42-
43-
- name: Generate Contributors Images
44-
uses: jaywcjlove/github-action-contributors@main
45-
with:
46-
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
47-
output: build/CONTRIBUTORS.svg
48-
avatarSize: 42
49-
50-
- name: Deploy
51-
uses: peaceiris/actions-gh-pages@v3
52-
with:
53-
github_token: ${{ secrets.GITHUB_TOKEN }}
54-
publish_dir: ./build
5562

5663
- name: Create Release
5764
uses: ncipollo/release-action@v1

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"css:build": "compile-less -d src -o esm",
1515
"css:watch": "compile-less -d src -o esm --watch",
1616
"css:build:dist": "compile-less -d src --combine dist.css --rm-global",
17-
"bundle": "ncc build src/index.tsx --target web --filename heat-map",
18-
"bundle:min": "ncc build src/index.tsx --target web --filename heat-map --minify",
17+
"bundle": "ncc build src/index.tsx --target web --filename editor",
18+
"bundle:min": "ncc build src/index.tsx --target web --filename editor --minify",
1919
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,css,md,json}\"",
2020
"test": "kkt test --env=jsdom --app-src=./website",
2121
"test:coverage": "kkt test --env=jsdom --coverage --app-src=./website --bail"

0 commit comments

Comments
 (0)