Skip to content

Commit

Permalink
chore: 使用 semantic-release 在 github 发布 tag release
Browse files Browse the repository at this point in the history
  • Loading branch information
IronBlood committed Jun 20, 2022
2 parents 459f5cd + 1b3d6f6 commit f37ec5b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: BMYBBS Content Parser Release

on:
push:
branches: [ main ]

jobs:
release:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'

- run: yarn install --immutable

- run: yarn build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release --branches main

0 comments on commit f37ec5b

Please sign in to comment.