Skip to content

ci: only run CI workflow on pull requests to avoid duplicate runs #19

ci: only run CI workflow on pull requests to avoid duplicate runs

ci: only run CI workflow on pull requests to avoid duplicate runs #19

Workflow file for this run

name: Release
on:
push:
branches: [main, master]
permissions:
contents: read
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build
- name: Verify provenance attestations
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release