Skip to content

Release

Release #261

Workflow file for this run

name: Release
"on":
workflow_run:
workflows: ["CI"]
types:
- completed
branches:
- main
jobs:
release:
if: >-
github.event.workflow_run.conclusion == 'success'
&& !startsWith(github.event.workflow_run.head_commit.message, 'chore(release)')
name: release
runs-on: ubuntu-latest
steps:
- name: Generate Token
id: generate_token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ github.event.workflow_run.head_sha }}
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
with:
tag_format: ${version}
branches: |
['main', 'next']
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/github
@semantic-release/changelog
@semantic-release/git
conventional-changelog-conventionalcommits
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}