Skip to content

ci: configure semantic release #4

ci: configure semantic release

ci: configure semantic release #4

Workflow file for this run

name: release
on:
pull_request:
push:
branches:
- main
- manifest-v3
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
pre-commit:
uses:
./.github/workflows/pre-commit.yml
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
- run: npm install
- run: npx commitlint --from HEAD~${{ github.event_name == 'pull_request' && github.event.pull_request.commits || github.event.push.commits }} --to HEAD
- run: npx semantic-release ${{ github.event_name == 'pull_request' && '--dry-run' || '' }}