Skip to content

Commit 89420d9

Browse files
committed
ci: update release workflow
1 parent 5488138 commit 89420d9

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

.github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
- name: Use Node.js ${{ matrix.node }}
3333
uses: actions/setup-node@v4
3434
with:
35-
node-version: ${{ matrix.node }}
3635
cache: pnpm
36+
node-version: ${{ matrix.node }}
3737

3838
- name: Install dependencies
3939
run: pnpm install --frozen-lockfile

.github/workflows/coverage.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
coverage:
2121
runs-on: ubuntu-latest
2222

23-
env:
24-
NODE_VERSION: '18'
25-
2623
steps:
2724
- uses: actions/checkout@v4
2825

@@ -32,8 +29,8 @@ jobs:
3229
- name: Setup Node.js
3330
uses: actions/setup-node@v4
3431
with:
35-
node-version: ${{ env.NODE_VERSION }}
3632
cache: pnpm
33+
node-version: lts/*
3734

3835
- name: Install dependencies
3936
run: pnpm install --frozen-lockfile

.github/workflows/release.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: release
22

3+
permissions:
4+
contents: write
5+
36
on:
47
push:
58
tags:
69
- 'v*'
7-
workflow_dispatch:
810

911
jobs:
1012
release:
@@ -18,13 +20,13 @@ jobs:
1820
- name: Push to release branch
1921
run: git push origin HEAD:release
2022

21-
- name: Create release
22-
if: ${{ github.event_name != 'workflow_dispatch' }}
23-
id: release_tag
24-
uses: yyx990803/release-tag@master
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: lts/*
27+
registry-url: https://registry.npmjs.org/
28+
29+
- name: Create release changelog
30+
run: npx changelogithub
2531
env:
2632
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
with:
28-
tag_name: ${{ github.ref }}
29-
body: |
30-
Please refer to [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for details.

0 commit comments

Comments
 (0)