ci: add GitHub Actions workflow for automated releases and update changelog version

This commit is contained in:
JOYCEQL
2026-02-28 22:18:38 +08:00
parent 08a767fd18
commit 34ff7ba429
2 changed files with 34 additions and 2 deletions
+32
View File
@@ -0,0 +1,32 @@
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Create GitHub Release
run: npx changelogen --release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}