diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35897186..bdfa44d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,17 +9,11 @@ jobs: release: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} - permissions: - packages: write - pull-requests: write - contents: write - issues: write - id-token: write steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} + persist-credentials: false - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -27,5 +21,5 @@ jobs: - run: npm ci --ignore-scripts - name: Release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_PAT }} run: npx semantic-release