Skip to content

Commit f2b0bce

Browse files
committed
chore: update workflows config.
1 parent f0dbd74 commit f2b0bce

File tree

1 file changed

+14
-30
lines changed

1 file changed

+14
-30
lines changed

.github/workflows/ci.yml

+14-30
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,10 @@ jobs:
77
build-deploy:
88
runs-on: ubuntu-18.04
99
steps:
10-
- uses: actions/checkout@master
11-
12-
- name: Setup Node
13-
uses: actions/setup-node@v1
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
1412
with:
15-
node-version: '10.x'
16-
17-
# - name: Cache dependencies
18-
# uses: actions/cache@v1
19-
# with:
20-
# path: ~/.npm
21-
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22-
# restore-keys: |
23-
# ${{ runner.os }}-node-
13+
node-version: 14
2414

2515
- run: npm install
2616
- run: npm run build
@@ -35,37 +25,31 @@ jobs:
3525

3626
- name: Generate Changelog
3727
id: changelog
38-
uses: jaywcjlove/changelog-generator@v1.3.9
28+
uses: jaywcjlove/changelog-generator@v1.3.10
3929
with:
4030
token: ${{ secrets.GITHUB_TOKEN }}
4131
head-ref: ${{steps.create_tag.outputs.version}}
4232
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
4333
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
4434

4535
- name: Create Release
46-
id: create_release
47-
uses: actions/create-release@latest
36+
uses: ncipollo/release-action@v1
4837
if: steps.create_tag.outputs.successful
49-
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5138
with:
52-
tag_name: ${{ steps.create_tag.outputs.version }}
53-
release_name: ${{ steps.create_tag.outputs.version }}
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
name: ${{ steps.create_tag.outputs.version }}
41+
tag: ${{ steps.create_tag.outputs.version }}
5442
body: |
55-
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-markdown-editor@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
56-
43+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-markdown-editor@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![](https://img.shields.io/github/issues/uiwjs/react-markdown-editor.svg)](https://github.com/uiwjs/react-markdown-editor/releases) [![](https://img.shields.io/github/forks/uiwjs/react-markdown-editor.svg)](https://github.com/uiwjs/react-markdown-editor/network) [![](https://img.shields.io/github/stars/uiwjs/react-markdown-editor.svg)](https://github.com/uiwjs/react-markdown-editor/stargazers) [![](https://img.shields.io/github/release/uiwjs/react-markdown-editor.svg)](https://github.com/uiwjs/react-markdown-editor/releases) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-markdown-editor)](https://bundlephobia.com/result?p=@uiw/react-markdown-editor@${{steps.create_tag.outputs.versionNumber}})
5744
```bash
5845
npm i @uiw/react-markdown-editor@${{steps.create_tag.outputs.versionNumber}}
5946
```
6047
6148
${{ steps.changelog.outputs.compareurl }}
6249
${{ steps.changelog.outputs.changelog }}
63-
draft: false
64-
prerelease: false
6550
66-
- name: Build and Deploy
67-
uses: peaceiris/actions-gh-pages@v2.5.0
68-
env:
69-
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
70-
PUBLISH_BRANCH: gh-pages
71-
PUBLISH_DIR: ./build
51+
- name: Deploy
52+
uses: peaceiris/actions-gh-pages@v3
53+
with:
54+
github_token: ${{ secrets.GITHUB_TOKEN }}
55+
publish_dir: ./build

0 commit comments

Comments
 (0)