7
7
build-deploy :
8
8
runs-on : ubuntu-18.04
9
9
steps :
10
- - uses : actions/checkout@v2
11
- with :
12
- submodules : true
13
- - uses : actions/setup-node@v2
14
- with :
15
- node-version : 14
10
+ - uses : actions/checkout@v3
11
+ with :
12
+ submodules : true
13
+ - uses : actions/setup-node@v3
14
+ with :
15
+ node-version : 16
16
+ registry-url : ' https://registry.npmjs.org'
16
17
17
- - run : npm install
18
- - run : npm run font
19
- - run : npm run build
20
- - run : npm run copy
21
- - run : rm -rf fonts/react
22
- - run : cp lib/*js ./
23
- - run : mkdir icon
24
- - run : cp icons/icons/*svg ./icon
25
- - run : rm -rf index.js
26
- - run : ls -al
18
+ - run : npm install
19
+ - run : npm run font
20
+ - run : npm run copy:svg
21
+ - run : npm run copy
22
+ - run : npm run build
23
+ - run : rm -rf fonts/react
24
+ - run : cp lib/*.js ./
25
+ - run : cp lib/*.d.ts ./
26
+ - run : mkdir icon
27
+ - run : cp icons/icons/*svg ./icon
28
+ - run : rm -rf index.js
29
+ - run : ls -al
27
30
28
- - name : Generate Contributors Images
29
- uses : jaywcjlove/github-action-contributors@main
30
- with :
31
- filter-author : (renovate\[bot\]|renovate-bot|dependabot\[bot\])
32
- output : fonts/CONTRIBUTORS.svg
33
- 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 : fonts/CONTRIBUTORS.svg
36
+ avatarSize : 42
34
37
35
- - name : Create Tag
36
- id : create_tag
37
- uses : jaywcjlove/create-tag-action@v1.3.6
38
- with :
39
- package-path : ./package.json
38
+ - name : Create Tag
39
+ id : create_tag
40
+ uses : jaywcjlove/create-tag-action@main
41
+ with :
42
+ package-path : ./package.json
40
43
41
- - name : get tag version
42
- id : tag_version
43
- uses : jaywcjlove/changelog-generator@v1.5.0
44
+ - name : get tag version
45
+ id : tag_version
46
+ uses : jaywcjlove/changelog-generator@main
44
47
45
- - name : Deploy
46
- uses : peaceiris/actions-gh-pages@v3
47
- with :
48
- commit_message : ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
49
- github_token : ${{ secrets.GITHUB_TOKEN }}
50
- publish_dir : ./fonts
48
+ - name : Deploy
49
+ uses : peaceiris/actions-gh-pages@v3
50
+ with :
51
+ commit_message : ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
52
+ github_token : ${{ secrets.GITHUB_TOKEN }}
53
+ publish_dir : ./fonts
51
54
52
- - name : Generate Changelog
53
- id : changelog
54
- uses : jaywcjlove/changelog-generator@v1.5.0
55
- with :
56
- head-ref : ${{steps.create_tag.outputs.version}}
57
- filter-author : (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
58
- filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
55
+ - name : Generate Changelog
56
+ id : changelog
57
+ uses : jaywcjlove/changelog-generator@main
58
+ with :
59
+ head-ref : ${{steps.create_tag.outputs.version}}
60
+ filter-author : (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
61
+ filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
59
62
60
- - name : Create Release
61
- uses : ncipollo/release-action@v1
62
- if : steps.create_tag.outputs.successful
63
- with :
64
- token : ${{ secrets.GITHUB_TOKEN }}
65
- name : ${{ steps.create_tag.outputs.version }}
66
- tag : ${{ steps.create_tag.outputs.version }}
67
- body : |
68
- [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/bootstrap-icons@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [](https://bundlephobia.com/result?p=@uiw/bootstrap-icons@${{steps.create_tag.outputs.versionNumber}})
69
-
70
- Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/bootstrap-icons/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
71
- Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
72
-
73
- ```bash
74
- npm i @uiw/bootstrap-icons@${{steps.create_tag.outputs.versionNumber}}
75
- ```
76
-
77
- ${{ steps.changelog.outputs.changelog }}
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/bootstrap-icons@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [](https://bundlephobia.com/result?p=@uiw/bootstrap-icons@${{steps.create_tag.outputs.versionNumber}})
72
+
73
+ Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/bootstrap-icons/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
74
+ Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
75
+
76
+ ```bash
77
+ npm i @uiw/bootstrap-icons@${{steps.create_tag.outputs.versionNumber}}
78
+ ```
79
+
80
+ ${{ steps.changelog.outputs.changelog }}
81
+
82
+ - run : rm -rf fonts/*.html
83
+ - run : npm publish --access public
84
+ name : 📦 @uiw/bootstrap-icons publish to NPM
85
+ continue-on-error : true
86
+ env :
87
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
78
88
79
- - run : rm -rf fonts/*.html
80
- - name : 📦 @uiw/icons publish to NPM
81
- uses : JS-DevTools/npm-publish@v1
82
- with :
83
- token : ${{ secrets.NPM_TOKEN }}
84
- package : ./package.json
85
89
0 commit comments