diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 52747fcb..7ffb0054 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 + with: + token: ${{ secrets.PAT }} - uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0 with: run_install: | @@ -26,5 +28,6 @@ jobs: commit: Release to npm publish: "pnpm publish:ci" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Use private access token so Github can trigger another workflow from this one + GITHUB_TOKEN: ${{ secrets.PAT }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}