.github/workflows/create-release.yml
name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: cycjimmy/semantic-release-action@v4
id: release
with:
tag_format: changelog-release-${version}
extra_plugins: |
@semantic-release/changelog
@semantic-release/npm
@semantic-release/git
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
# GIT_AUTHOR_NAME: ${{ vars.ZEN_BOT_NAME }}
# GIT_AUTHOR_EMAIL: ${{ vars.ZEN_BOT_EMAIL }}
# GIT_COMMITTER_NAME: ${{ vars.ZEN_BOT_NAME }}
# GIT_COMMITTER_EMAIL: ${{ vars.ZEN_BOT_EMAIL }}
outputs:
version: ${{ steps.release.outputs.new_release_version }}
published: ${{ steps.release.outputs.new_release_published }}