From fb152ac4d35b01388dd16ba6cda72605ded13522 Mon Sep 17 00:00:00 2001 From: Alin Stefan Olaru Date: Thu, 25 Jul 2024 14:58:21 +0200 Subject: [PATCH] Revert "fix: gh token for releasing package (#11)" This reverts commit 112301aababbe36e8931f4e90a9a241da3227cce. --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cf8f414..017f4a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,12 +3,6 @@ on: branches: - main workflow_dispatch: - -permissions: - contents: write - packages: write - pull-requests: write - issues: write name: Release jobs: @@ -31,9 +25,15 @@ jobs: run: yarn install --frozen-lockfile - name: Build run: yarn build + - name: Request GitHub token + id: get_workflow_token + uses: peter-murray/workflow-application-token-action@v2.1.0 + with: + application_id: ${{ secrets.APP_ID }} + application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }} - name: Release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }} NPM_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }} run: yarn release