feat: use semantic release

This commit is contained in:
Starcea 2024-06-28 00:21:45 +09:00
commit 0a2f382ced
No known key found for this signature in database
GPG key ID: B7A77E32374911E1
3 changed files with 2441 additions and 18 deletions

27
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Release
on:
push:
branches:
- release
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Semantic release
run: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}