From b4b2b936a1f9e3c32e53ac5c003eb47b7da2ccda Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Fri, 19 Dec 2025 14:07:58 -0500 Subject: [PATCH] chore(ci): update semantic release workflow to use OIDC --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 068bb1aeb..7bf25d00c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,10 +4,17 @@ on: branches: - master - alpha +permissions: + contents: read # for checkout jobs: release: name: Release runs-on: ubuntu-latest + permissions: + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests + id-token: write # to enable use of OIDC for trusted publishing and npm provenance steps: - name: Checkout uses: actions/checkout@v5 @@ -39,9 +46,6 @@ jobs: - name: Build run: npm run build - name: Release - uses: cycjimmy/semantic-release-action@v3 - with: - semantic_version: 16 env: GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} + run: npx semantic-release@25