chore(projects): add github action

This commit is contained in:
lixin
2023-03-03 17:40:26 +08:00
parent c3d0b74c75
commit f355a698ad
5 changed files with 172 additions and 0 deletions

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

@ -0,0 +1,27 @@
name: Release
on:
push:
tags:
- 'v*.**'
permissions:
contents: write
jobs:
release:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Create github releases
run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}