Skip to content

Modify semantic-release.yml for OIDC and config changes #3

Modify semantic-release.yml for OIDC and config changes

Modify semantic-release.yml for OIDC and config changes #3

name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write # Required for OIDC / Trusted Publishing
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
# Note: registry-url was removed to prevent conflicts with semantic-release
- name: Install dependencies
run: npm ci
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: npx semantic-release