@@ -10,78 +10,79 @@ jobs:
1010 build-deploy :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
14- - uses : actions/setup-node@v2
15- with :
16- node-version : 14
17-
18- - run : npm install
19- - run : npm run build
20- - run : npm run doc
21- - run : npm run bundle
22- - run : npm run bundle:min
23- - run : npm run coverage
24- - run : npm run type-check
25-
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-
44- - name : Create Tag
45- id : create_tag
46- uses :
jaywcjlove/[email protected] 47- with :
48- package-path : ./package.json
49-
50- - name : Generate Changelog
51- id : changelog
52- uses :
jaywcjlove/[email protected] 53- with :
54- head-ref : ${{steps.create_tag.outputs.version}}
55- filter-author : (renovate-bot|Renovate Bot)
56- filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
57-
58- - name : Create Release
59- uses : ncipollo/release-action@v1
60- if : steps.create_tag.outputs.successful
61- with :
62- token : ${{ secrets.GITHUB_TOKEN }}
63- name : ${{ steps.create_tag.outputs.version }}
64- tag : ${{ steps.create_tag.outputs.version }}
65- body : |
66- [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-split@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
67-
68- Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-split/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
69- Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
70-
71- ```bash
72- npm i @uiw/react-split@${{steps.create_tag.outputs.versionNumber}}
73- ```
74-
75- ${{ steps.changelog.outputs.changelog }}
76-
77- Bundle Example: https://uiwjs.github.io/react-split/bundle.html
78-
79- - name : 📦 @uiw/react-split publish to NPM
80- uses : JS-DevTools/npm-publish@v1
81- with :
82- token : ${{ secrets.NPM_TOKEN }}
83- package : ./package.json
13+ - uses : actions/checkout@v3
14+ - uses : actions/setup-node@v3
15+ with :
16+ node-version : 16
17+ registry-url : ' https://registry.npmjs.org'
18+
19+ - run : npm install
20+ - run : npm run build
21+ - run : npm run doc
22+ - run : npm run bundle
23+ - run : npm run bundle:min
24+ - run : npm run coverage
25+ - run : npm run type-check
26+
27+ - name : Generate Contributors Images
28+ uses : jaywcjlove/github-action-contributors@main
29+ with :
30+ filter-author : (renovate\[bot\]|renovate-bot|dependabot\[bot\])
31+ output : build/CONTRIBUTORS.svg
32+ avatarSize : 42
8433
34+ - name : Create Coverage Badges
35+ uses : jaywcjlove/coverage-badges-cli@main
36+ with :
37+ output : build/badges.svg
38+
39+ - name : Deploy
40+ uses : peaceiris/actions-gh-pages@v3
41+ with :
42+ github_token : ${{ secrets.GITHUB_TOKEN }}
43+ publish_dir : ./build
44+
45+ - name : Create Tag
46+ id : create_tag
47+ uses : jaywcjlove/create-tag-action@main
48+ with :
49+ package-path : ./package.json
50+
51+ - name : Generate Changelog
52+ id : changelog
53+ uses : jaywcjlove/changelog-generator@main
54+ with :
55+ head-ref : ${{steps.create_tag.outputs.version}}
56+ filter-author : (renovate-bot|Renovate Bot)
57+ filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
58+
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/@uiw/react-split@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
68+
69+ Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-split/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
70+ Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
71+
72+ ```bash
73+ npm i @uiw/react-split@${{steps.create_tag.outputs.versionNumber}}
74+ ```
75+
76+ ${{ steps.changelog.outputs.changelog }}
77+
78+ Bundle Example: https://uiwjs.github.io/react-split/bundle.html
79+
80+ - run : npm publish --access public
81+ name : 📦 @uiw/react-split publish to NPM
82+ continue-on-error : true
83+ env :
84+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
85+
8586
8687 outputs :
8788 successful : ${{steps.create_tag.outputs.successful }}
0 commit comments