build(ci): use a dedicated PAT to publish on GPR
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 8 Sep 2023 16:31:19 +0000 (18:31 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 8 Sep 2023 16:31:19 +0000 (18:31 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/npmpublish.yml

index c95d529527a8c87ecfd8fc9bb04dd43d6f9344f0..17bf521803ef4df23b34c769c5e7371d3352e5df 100644 (file)
@@ -116,16 +116,16 @@ jobs:
         if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
         run: pnpm publish --no-git-checks
         env:
-          NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}
 
       - name: Publish Pre-Release
         if: ${{ contains(steps.package-version.outputs.version, '-') == true && contains(steps.package-version.outputs.version, '-beta') == false }}
         run: pnpm publish --no-git-checks --tag next
         env:
-          NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}
 
       - name: Publish Beta Release
         if: ${{ contains(steps.package-version.outputs.version, '-beta') == true }}
         run: pnpm publish --no-git-checks --tag beta
         env:
-          NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}