Skip to content

Commit 9a039f0

Browse files
committed
chore: update workflows config.
1 parent dba1557 commit 9a039f0

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,24 @@ 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'
13+
node-version: 14
1614

1715
- run: npm install
1816
- run: npm run build
1917

2018
- name: Create Tag
2119
id: create_tag
22-
uses: jaywcjlove/[email protected].7
20+
uses: jaywcjlove/[email protected].10
2321
with:
2422
token: ${{ secrets.GITHUB_TOKEN }}
2523
package-path: ./package.json
2624

2725
- name: Generate Changelog
2826
id: changelog
29-
uses: jaywcjlove/[email protected].9
27+
uses: jaywcjlove/[email protected].10
3028
with:
3129
token: ${{ secrets.GITHUB_TOKEN }}
3230
head-ref: ${{steps.create_tag.outputs.version}}
@@ -40,16 +38,17 @@ jobs:
4038
publish_dir: ./build
4139

4240
- name: Create Release
43-
id: create_release
44-
uses: actions/create-release@latest
41+
uses: ncipollo/release-action@v1
4542
if: steps.create_tag.outputs.successful
46-
env:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4843
with:
49-
tag_name: ${{ steps.create_tag.outputs.version }}
50-
release_name: ${{ steps.create_tag.outputs.version }}
44+
token: ${{ secrets.GITHUB_TOKEN }}
45+
name: ${{ steps.create_tag.outputs.version }}
46+
tag: ${{ steps.create_tag.outputs.version }}
5147
body: |
48+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![](https://img.shields.io/github/issues/uiwjs/react-markdown-preview.svg)](https://github.com/uiwjs/react-markdown-preview/releases) [![](https://img.shields.io/github/forks/uiwjs/react-markdown-preview.svg)](https://github.com/uiwjs/react-markdown-preview/network) [![](https://img.shields.io/github/stars/uiwjs/react-markdown-preview.svg)](https://github.com/uiwjs/react-markdown-preview/stargazers) [![](https://img.shields.io/github/release/uiwjs/react-markdown-preview.svg)](https://github.com/uiwjs/react-markdown-preview/releases) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-markdown-preview)](https://bundlephobia.com/result?p=@uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}})
49+
```bash
50+
npm i @uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}}
51+
```
52+
5253
${{ steps.changelog.outputs.compareurl }}
5354
${{ steps.changelog.outputs.changelog }}
54-
draft: false
55-
prerelease: false

0 commit comments

Comments
 (0)