Skip to content

chore: sync from template v1.0.2 #6

chore: sync from template v1.0.2

chore: sync from template v1.0.2 #6

Workflow file for this run

---
name: Release
"on":
push:
branches:
- main
jobs:
release:
name: "Release"
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
concurrency:
group: semantic-release
cancel-in-progress: false
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN || secrets.GITHUB_TOKEN }}
- name: Semantic release
run: |
docker run --rm \
--user 1001 \
-v ${{ github.workspace }}:/workspace \
-w /workspace \
-e GITHUB_TOKEN=${{ secrets.SEMANTIC_RELEASE_TOKEN || secrets.GITHUB_TOKEN }} \
-e CI=true \
ghcr.io/disafronov/semantic-release:latest