2023-09-24 12:06:13 +03:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
2023-09-26 10:39:06 +03:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
pull-requests: write
|
|
|
|
|
2023-09-24 12:06:13 +03:00
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
2023-09-24 12:13:26 +03:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2023-09-24 12:06:13 +03:00
|
|
|
|
|
|
|
- name: Semantic Release
|
2023-09-24 12:07:02 +03:00
|
|
|
uses: cycjimmy/semantic-release-action@v4
|
2023-09-24 12:06:13 +03:00
|
|
|
with:
|
|
|
|
branches: |
|
|
|
|
[
|
|
|
|
'+([0-9])?(.{+([0-9]),x}).x',
|
|
|
|
'main'
|
|
|
|
]
|
|
|
|
extra_plugins: |
|
|
|
|
@semantic-release/commit-analyzer
|
|
|
|
@semantic-release/release-notes-generator
|
|
|
|
@semantic-release/git
|
|
|
|
@semantic-release/changelog
|
2023-09-26 12:50:45 +03:00
|
|
|
conventional-changelog-conventionalcommits
|
2023-09-24 12:06:13 +03:00
|
|
|
env:
|
2023-09-26 12:50:45 +03:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|