@@ -12,14 +12,56 @@ jobs:
12
12
- name : Setup Node
13
13
uses : actions/setup-node@v1
14
14
with :
15
- node-version : 12
15
+ node-version : 14
16
16
17
17
- run : npm install
18
- - run : npm run build:lib
18
+ - run : npm run build
19
19
- run : npm run doc
20
20
21
21
- name : Deploy
22
22
uses : peaceiris/actions-gh-pages@v3
23
23
with :
24
24
deploy_key : ${{ secrets.ACTIONS_DEPLOY_KEY }}
25
- publish_dir : ./build
25
+ publish_dir : ./build
26
+
27
+ - name : Is a tag created auto?
28
+ id : create_tag
29
+ uses :
jaywcjlove/[email protected]
30
+ with :
31
+ token : ${{ secrets.GITHUB_TOKEN }}
32
+ package-path : ./package.json
33
+
34
+ - name : Generate Changelog
35
+ id : changelog
36
+ uses :
jaywcjlove/[email protected]
37
+ with :
38
+ token : ${{ secrets.GITHUB_TOKEN }}
39
+ head-ref : ${{steps.create_tag.outputs.version}}
40
+ filter-author : (jaywcjlove|小弟调调™|dependabot|dependabot\[bot\]|Renovate Bot)
41
+ filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
42
+
43
+ - name : Create Release
44
+ id : create_release
45
+ uses : actions/create-release@latest
46
+ if : steps.create_tag.outputs.successful
47
+ env :
48
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
+ with :
50
+ tag_name : ${{ steps.create_tag.outputs.version }}
51
+ release_name : ${{ steps.create_tag.outputs.version }}
52
+ body : |
53
+ [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codepen@${{ steps.create_tag.outputs.versionNumber }}/file/README.md)
54
+
55
+ ```bash
56
+ npm i @uiw/react-codepen@${{ steps.create_tag.outputs.versionNumber }}
57
+ ```
58
+
59
+ ${{ steps.changelog.outputs.compareurl }}
60
+
61
+ ${{ steps.changelog.outputs.changelog }}
62
+ draft : false
63
+ prerelease : false
64
+
65
+ - run : git status
66
+ - run : npm install @jsdevtools/npm-publish -g
67
+ - run : npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
0 commit comments