Skip to content

Commit 26b808f

Browse files
committed
chore: update workflows config.
1 parent c8d68a2 commit 26b808f

File tree

1 file changed

+43
-42
lines changed

1 file changed

+43
-42
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,54 @@ on:
55
- master
66
jobs:
77
build-deploy:
8-
runs-on: ubuntu-18.04
8+
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v2
12-
with:
13-
node-version: 14
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 16
14+
registry-url: 'https://registry.npmjs.org'
1415

15-
- run: npm install
16-
- run: npm run build
16+
- run: npm install
17+
- run: npm run build
1718

18-
- name: Generate Contributors Images
19-
uses: jaywcjlove/github-action-contributors@main
20-
with:
21-
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
22-
output: build/CONTRIBUTORS.svg
23-
avatarSize: 42
19+
- name: Generate Contributors Images
20+
uses: jaywcjlove/github-action-contributors@main
21+
with:
22+
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
23+
output: build/CONTRIBUTORS.svg
24+
avatarSize: 42
2425

25-
- name: Deploy
26-
uses: peaceiris/actions-gh-pages@v3
27-
with:
28-
github_token: ${{ secrets.GITHUB_TOKEN }}
29-
publish_dir: ./build
26+
- name: Deploy
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./build
3031

31-
- name: Is a tag created auto?
32-
id: create_tag
33-
uses: jaywcjlove/create-tag-action@v1.3.5
34-
with:
35-
token: ${{ secrets.GITHUB_TOKEN }}
36-
package-path: ./package.json
32+
- name: Is a tag created auto?
33+
id: create_tag
34+
uses: jaywcjlove/create-tag-action@main
35+
with:
36+
token: ${{ secrets.GITHUB_TOKEN }}
37+
package-path: ./package.json
3738

38-
- name: Generate Changelog
39-
id: changelog
40-
uses: jaywcjlove/changelog-generator@v1.4.8
41-
with:
42-
token: ${{ secrets.GITHUB_TOKEN }}
43-
head-ref: ${{steps.create_tag.outputs.version}}
44-
filter-author: (renovate-bot|Renovate Bot)
45-
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
39+
- name: Generate Changelog
40+
id: changelog
41+
uses: jaywcjlove/changelog-generator@main
42+
with:
43+
token: ${{ secrets.GITHUB_TOKEN }}
44+
head-ref: ${{steps.create_tag.outputs.version}}
45+
filter-author: (renovate-bot|Renovate Bot)
46+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
4647

47-
- name: Create Release
48-
uses: ncipollo/release-action@v1
49-
if: steps.create_tag.outputs.successful
50-
with:
51-
token: ${{ secrets.GITHUB_TOKEN }}
52-
name: ${{ steps.create_tag.outputs.version }}
53-
tag: ${{ steps.create_tag.outputs.version }}
54-
body: |
55-
${{ steps.changelog.outputs.compareurl }}
48+
- name: Create Release
49+
uses: ncipollo/release-action@v1
50+
if: steps.create_tag.outputs.successful
51+
with:
52+
token: ${{ secrets.GITHUB_TOKEN }}
53+
name: ${{ steps.create_tag.outputs.version }}
54+
tag: ${{ steps.create_tag.outputs.version }}
55+
body: |
56+
${{ steps.changelog.outputs.compareurl }}
5657
57-
${{ steps.changelog.outputs.changelog }}
58+
${{ steps.changelog.outputs.changelog }}

0 commit comments

Comments
 (0)