Skip to content

Commit 0cfd39a

Browse files
committed
chore: update workflows config.
1 parent 3794724 commit 0cfd39a

File tree

1 file changed

+30
-13
lines changed

1 file changed

+30
-13
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Deploy
1+
name: CI
22
on:
33
push:
44
branches:
@@ -16,23 +16,34 @@ jobs:
1616
- run: npm run build
1717
- run: npm run doc
1818

19-
- name: Deploy
20-
uses: peaceiris/actions-gh-pages@v3
19+
- name: Generate Contributors Images
20+
uses: jaywcjlove/github-action-contributors@main
2121
with:
22-
github_token: ${{ secrets.GITHUB_TOKEN }}
23-
publish_dir: ./build
22+
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
23+
output: build/CONTRIBUTORS.svg
24+
avatarSize: 42
2425

2526
- name: Is a tag created auto?
2627
id: create_tag
27-
uses: jaywcjlove/[email protected].5
28+
uses: jaywcjlove/[email protected].6
2829
with:
2930
package-path: ./package.json
3031

32+
- name: get tag version
33+
id: tag_version
34+
uses: jaywcjlove/[email protected]
35+
36+
- name: Deploy
37+
uses: peaceiris/actions-gh-pages@v3
38+
with:
39+
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
publish_dir: ./build
42+
3143
- name: Generate Changelog
3244
id: changelog
33-
uses: jaywcjlove/changelog-generator@v1.4.8
45+
uses: jaywcjlove/changelog-generator@v1.5.0
3446
with:
35-
token: ${{ secrets.GITHUB_TOKEN }}
3647
head-ref: ${{steps.create_tag.outputs.version}}
3748
filter-author: (renovate-bot|dependabot|dependabot\[bot\]|Renovate Bot)
3849
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
@@ -47,14 +58,20 @@ jobs:
4758
body: |
4859
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codepen@${{ steps.create_tag.outputs.versionNumber }}/file/README.md)
4960
61+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-codepen/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
62+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
63+
5064
```bash
5165
npm i @uiw/react-codepen@${{ steps.create_tag.outputs.versionNumber }}
5266
```
53-
54-
${{ steps.changelog.outputs.compareurl }}
5567
5668
${{ steps.changelog.outputs.changelog }}
5769
58-
- run: git status
59-
- run: npm install @jsdevtools/npm-publish -g
60-
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
70+
- uses: JS-DevTools/npm-publish@v1
71+
with:
72+
token: ${{ secrets.NPM_TOKEN }}
73+
package: ./package.json
74+
75+
# - run: git status
76+
# - run: npm install @jsdevtools/npm-publish -g
77+
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

0 commit comments

Comments
 (0)