1+ name : Build & Deploy
2+ on :
3+ push :
4+ branches :
5+ - master
6+ jobs :
7+ build-deploy :
8+ runs-on : ubuntu-18.04
9+ steps :
10+ - uses : actions/checkout@v2
11+ - uses : actions/setup-node@v2
12+ with :
13+ node-version : 14
14+
15+ - name : Look Changelog
16+ uses : jaywcjlove/changelog-generator@v1.4.2
17+ with :
18+ token : ${{ secrets.GITHUB_TOKEN }}
19+ filter-author : (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
20+ filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
21+
22+ - run : yarn install
23+
24+ - name : package/react-native-uiw
25+ working-directory : package/react-native-uiw
26+ run : yarn install && yarn run start
27+
28+ - name : Is a tag created auto?
29+ id : create_tag
30+ uses : jaywcjlove/create-tag-action@v1.2.0
31+ with :
32+ token : ${{ secrets.GITHUB_TOKEN }}
33+ package-path : ./package/react-native-uiw/package.json
34+
35+ - name : Generate Changelog
36+ id : changelog
37+ uses : jaywcjlove/changelog-generator@v1.4.2
38+ if : steps.create_tag.outputs.successful
39+ with :
40+ token : ${{ secrets.GITHUB_TOKEN }}
41+ head-ref : ${{ steps.create_tag.outputs.version }}
42+ filter-author : (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
43+ filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
44+
45+ - name : Create Release
46+ uses : ncipollo/release-action@v1
47+ if : steps.create_tag.outputs.successful
48+ with :
49+ token : ${{ secrets.GITHUB_TOKEN }}
50+ name : ${{ steps.changelog.outputs.tag }}
51+ tag : ${{ steps.changelog.outputs.tag }}
52+ body : |
53+ [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-native@${{steps.changelog.outputs.version}}/file/README.md) [](https://www.npmjs.com/package/@uiw/react-native) [](https://bundlephobia.com/result?p=@uiw/react-native@${{steps.changelog.outputs.version}})
54+
55+ ```bash
56+ npm i @uiw/react-native@${{steps.changelog.outputs.version}}
57+ ```
58+
59+ ${{ steps.changelog.outputs.compareurl }}
60+ ${{ steps.changelog.outputs.changelog }}
0 commit comments