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