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