Skip to content

ci: Add explicit permissions to CI workflows. (#276) #21

ci: Add explicit permissions to CI workflows. (#276)

ci: Add explicit permissions to CI workflows. (#276) #21

Workflow file for this run

name: Release
on:
push:
branches: [main]
permissions:
contents: read
jobs:
release:
name: Semantic Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.RELEASE_APP_ID }}
private_key: ${{ secrets.RELEASE_APP_SECRET }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
HUSKY: "0"
run: npx semantic-release