Skip to content

Commit e84ea72

Browse files
committed
chore: update workflows config.
1 parent d31e1d0 commit e84ea72

File tree

1 file changed

+15
-23
lines changed

1 file changed

+15
-23
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,25 @@ jobs:
88
build-deploy:
99
runs-on: ubuntu-18.04
1010
steps:
11-
- uses: actions/checkout@master
12-
13-
- name: Look Changelog
14-
uses: jaywcjlove/changelog-generator@v1.3.9
15-
with:
16-
token: ${{ secrets.GITHUB_TOKEN }}
17-
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
18-
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
19-
20-
- name: Setup Node
21-
uses: actions/setup-node@v1
22-
with:
23-
node-version: 12
24-
25-
- name: Look Changelog
26-
uses: jaywcjlove/changelog-generator@v1.3.9
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
2713
with:
28-
token: ${{ secrets.GITHUB_TOKEN }}
29-
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
30-
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
14+
node-version: 14
3115

3216
- run: npm install
3317
- run: npm run build
18+
- run: npm run coverage
3419

3520
- name: Create Tag
3621
id: create_tag
37-
uses: jaywcjlove/create-tag-action@v1.1.5
22+
uses: jaywcjlove/create-tag-action@v1.2.0
3823
with:
3924
token: ${{ secrets.GITHUB_TOKEN }}
4025
package-path: ./package.json
4126

4227
- name: Generate Changelog
4328
id: changelog
44-
uses: jaywcjlove/changelog-generator@v1.3.9
45-
if: steps.create_tag.outputs.successful
29+
uses: jaywcjlove/changelog-generator@v1.4.3
4630
with:
4731
token: ${{ secrets.GITHUB_TOKEN }}
4832
head-ref: ${{steps.create_tag.outputs.version}}
@@ -59,16 +43,24 @@ jobs:
5943
tag_name: ${{ steps.create_tag.outputs.version }}
6044
release_name: ${{ steps.create_tag.outputs.version }}
6145
body: |
46+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-code-preview@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
47+
48+
```bash
49+
npm i @uiw/react-code-preview@${{steps.create_tag.outputs.versionNumber}}
50+
```
51+
6252
${{ steps.changelog.outputs.compareurl }}
53+
6354
${{ steps.changelog.outputs.changelog }}
6455
draft: false
6556
prerelease: false
6657

6758
- run: npm run doc
6859
env:
6960
NODE_OPTIONS: --max_old_space_size=8192
61+
7062
- name: Deploy
7163
uses: peaceiris/actions-gh-pages@v3
7264
with:
73-
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
65+
github_token: ${{ secrets.GITHUB_TOKEN }}
7466
publish_dir: ./build

0 commit comments

Comments
 (0)