Skip to content

Commit 56ee11f

Browse files
committed
chore: update workflows config.
1 parent 407169b commit 56ee11f

File tree

1 file changed

+21
-30
lines changed

1 file changed

+21
-30
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,66 +9,57 @@ jobs:
99
build-deploy:
1010
runs-on: ubuntu-18.04
1111
steps:
12-
- uses: actions/checkout@master
13-
12+
- uses: actions/checkout@v2
1413
- name: Look Changelog
15-
uses: jaywcjlove/changelog-generator@v1.3.9
14+
uses: jaywcjlove/changelog-generator@v1.4.2
1615
with:
1716
token: ${{ secrets.GITHUB_TOKEN }}
1817
head-ref: ${{steps.create_tag.outputs.version}}
1918
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
2019
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
2120

22-
- name: Setup Node
23-
uses: actions/setup-node@v1
21+
- uses: actions/setup-node@v2
2422
with:
25-
node-version: '10.x'
26-
27-
# - name: Cache dependencies
28-
# uses: actions/cache@v1
29-
# with:
30-
# path: ~/.npm
31-
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
32-
# restore-keys: |
33-
# ${{ runner.os }}-node-
23+
node-version: 14
3424

3525
- run: npm install
3626
- run: npm run build
3727

38-
- name: Build and Deploy
39-
uses: peaceiris/[email protected]
40-
env:
41-
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
42-
PUBLISH_BRANCH: gh-pages
43-
PUBLISH_DIR: ./build
28+
- name: Deploy
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./build
4433

4534
- name: Create Tag
4635
id: create_tag
47-
uses: jaywcjlove/create-tag-action@v1.1.7
36+
uses: jaywcjlove/create-tag-action@v1.2.0
4837
with:
4938
token: ${{ secrets.GITHUB_TOKEN }}
5039
package-path: ./package.json
5140

5241
- name: Generate Changelog
5342
id: changelog
54-
uses: jaywcjlove/changelog-generator@v1.3.9
43+
uses: jaywcjlove/changelog-generator@v1.4.2
5544
with:
5645
token: ${{ secrets.GITHUB_TOKEN }}
5746
head-ref: ${{steps.create_tag.outputs.version}}
5847
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
5948
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
6049

6150
- name: Create Release
62-
id: create_release
63-
uses: actions/create-release@latest
51+
uses: ncipollo/release-action@v1
6452
if: steps.create_tag.outputs.successful
65-
env:
66-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6753
with:
68-
tag_name: ${{ steps.create_tag.outputs.version }}
69-
release_name: ${{ steps.create_tag.outputs.version }}
54+
token: ${{ secrets.GITHUB_TOKEN }}
55+
name: ${{ steps.create_tag.outputs.version }}
56+
tag: ${{ steps.create_tag.outputs.version }}
7057
body: |
58+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codemirror@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-codemirror)](https://bundlephobia.com/result?p=@uiw/react-codemirror@${{steps.create_tag.outputs.versionNumber}})
59+
60+
```bash
61+
npm i @uiw/react-codemirror@${{steps.create_tag.outputs.versionNumber}}
62+
```
63+
7164
${{ steps.changelog.outputs.compareurl }}
7265
${{ steps.changelog.outputs.changelog }}
73-
draft: false
74-
prerelease: false

0 commit comments

Comments
 (0)