From 523aba036025f2a43b629781f8971d67c0e8eae3 Mon Sep 17 00:00:00 2001 From: Damien Daspit Date: Wed, 27 Nov 2024 17:16:46 -0500 Subject: [PATCH] Use personal access token to invoke changesets - allows the release workflow to invoke other workflows --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c6e280c..37b40a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,9 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.CHANGESETS_GITHUB_TOKEN }} - name: Setup Node.js uses: volta-cli/action@v4 @@ -26,6 +29,7 @@ jobs: uses: changesets/action@v1 with: publish: npm release + setupGitUser: false env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.CHANGESETS_GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}