Skip to content

chore(ci): add semantic PR and release workflows (#17) #1

chore(ci): add semantic PR and release workflows (#17)

chore(ci): add semantic PR and release workflows (#17) #1

name: Semantic Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Semantic Release
# Work around for non npm project
# REF: https://github.com/cycjimmy/semantic-release-action/issues/115#issuecomment-1817264419
run: echo '{"branches":[],"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/github"]}' > .releaserc.json
- name: Create Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branches: |
["main"]