diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b1451f8..576648a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,10 +17,19 @@ jobs: id-token: write steps: + - name: Generate token + id: generate-token + uses: actions/create-github-app-token@v2 + with: + app-id: ${{ secrets.BOT_APP_ID }} + private-key: ${{ secrets.BOT_PRIVATE_KEY }} + - name: Checkout uses: actions/checkout@v6 with: fetch-depth: 0 + token: ${{ steps.generate-token.outputs.token }} + persist-credentials: false - name: Setup Node.js uses: actions/setup-node@v6 @@ -40,4 +49,4 @@ jobs: - name: Release run: npm run release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d6ead3ec..3ab79984 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,8 +4,6 @@ name: Node.js CI on: - push: - branches: [ main ] pull_request: branches: [ main ]