diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 600b5319d..d934233fb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,10 +21,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v3 - with: - persist-credentials: false - - name: Generate a token id: generate_token uses: actions/create-github-app-token@v1 @@ -32,6 +28,11 @@ jobs: app-id: ${{ secrets.APP_ID }} private-key: ${{ secrets.APP_PRIVATE_KEY }} + - uses: actions/checkout@v3 + with: + persist-credentials: false + token: ${{ steps.generate_token.outputs.token }} + - name: Setup Node.js uses: actions/setup-node@v3 with: