8
8
build-deploy :
9
9
runs-on : ubuntu-18.04
10
10
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
15
15
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
20
20
21
- - run : cp -rp coverage dist
21
+ - run : cp -rp coverage dist
22
22
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
29
29
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
36
36
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
40
42
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}'
56
58
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://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://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 }}
69
71
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
+ ```
73
75
74
- ${{ steps.changelog.outputs.changelog }}
76
+ ${{ steps.changelog.outputs.changelog }}
0 commit comments