2
2
on :
3
3
push :
4
4
branches :
5
- - v2
5
+ - main
6
6
7
7
jobs :
8
8
build-deploy :
@@ -20,68 +20,66 @@ jobs:
20
20
- run : npm run build
21
21
- run : npm run coverage
22
22
- run : npm run doc
23
- # working-directory: ./www
24
23
25
- # - name: Create Coverage Badges
26
- # uses: jaywcjlove/coverage-badges-cli@main
27
- # with:
28
- # source: core/coverage/coverage-summary.json
29
- # output: ./www/build/badges.svg
24
+ - name : Create Coverage Badges
25
+ uses : jaywcjlove/coverage-badges-cli@main
26
+ with :
27
+ source : core/coverage/coverage-summary.json
28
+ output : ./www/build/badges.svg
30
29
31
- # - run: cp -rp core/coverage/lcov-report ./www/build/
30
+ - run : cp -rp core/coverage/lcov-report ./www/build/
32
31
33
- # - name: Generate Contributors Images
34
- # uses: jaywcjlove/github-action-contributors@main
35
- # with:
36
- # filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
37
- # output: www/build/CONTRIBUTORS.svg
38
- # avatarSize: 42
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 : www/build/CONTRIBUTORS.svg
37
+ avatarSize : 42
39
38
40
- # - name: Create Tag
41
- # id: create_tag
42
- # uses: jaywcjlove/create-tag-action@main
43
- # with:
44
- # token: ${{ secrets.GITHUB_TOKEN }}
45
- # package-path: ./core/package.json
39
+ - name : Create Tag
40
+ id : create_tag
41
+ uses : jaywcjlove/create-tag-action@main
42
+ with :
43
+ token : ${{ secrets.GITHUB_TOKEN }}
44
+ package-path : ./core/package.json
46
45
47
- # - name: get tag version
48
- # id: tag_version
49
- # uses: jaywcjlove/changelog-generator@main
46
+ - name : get tag version
47
+ id : tag_version
48
+ uses : jaywcjlove/changelog-generator@main
50
49
51
50
- name : Deploy
52
51
uses : peaceiris/actions-gh-pages@v3
53
52
with :
54
53
commit_message : ${{ github.event.head_commit.message }}
55
54
github_token : ${{ secrets.GITHUB_TOKEN }}
56
55
publish_dir : ./www/build
57
- publish_branch : v2-docs
58
56
59
- # - name: Generate Changelog
60
- # id: changelog
61
- # uses: jaywcjlove/changelog-generator@main
62
- # with:
63
- # head-ref: ${{steps.create_tag.outputs.version}}
64
- # filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
57
+ - name : Generate Changelog
58
+ id : changelog
59
+ uses : jaywcjlove/changelog-generator@main
60
+ with :
61
+ head-ref : ${{steps.create_tag.outputs.version}}
62
+ filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
65
63
66
- # - name: Create Release
67
- # uses: ncipollo/release-action@v1
68
- # if: steps.create_tag.outputs.successful
69
- # with:
70
- # token: ${{ secrets.GITHUB_TOKEN }}
71
- # name: ${{ steps.create_tag.outputs.version }}
72
- # tag: ${{ steps.create_tag.outputs.version }}
73
- # body: |
74
- # [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-json-view@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
64
+ - name : Create Release
65
+ uses : ncipollo/release-action@v1
66
+ if : steps.create_tag.outputs.successful
67
+ with :
68
+ token : ${{ secrets.GITHUB_TOKEN }}
69
+ name : ${{ steps.create_tag.outputs.version }}
70
+ tag : ${{ steps.create_tag.outputs.version }}
71
+ body : |
72
+ [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-json-view@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
75
73
76
- # Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-json-view/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
77
- # Or Doc Website: https://htmlpreview.github.io/?https://github.com/uiwjs/react-json-view/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
78
- # Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
74
+ Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-json-view/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
75
+ Or Doc Website: https://htmlpreview.github.io/?https://github.com/uiwjs/react-json-view/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
76
+ Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
79
77
80
- # ```bash
81
- # npm i @uiw/react-json-view@${{steps.create_tag.outputs.versionNumber}}
82
- # ```
78
+ ```bash
79
+ npm i @uiw/react-json-view@${{steps.create_tag.outputs.versionNumber}}
80
+ ```
83
81
84
- # ${{ steps.changelog.outputs.changelog }}
82
+ ${{ steps.changelog.outputs.changelog }}
85
83
86
84
- run : npm publish --access public
87
85
name : 📦 @uiw/react-json-view publish to NPM
0 commit comments