Skip to content

Commit 26ec14d

Browse files
committed
ci(workflows): [publish] fix User cannot be authenticated with the token provided
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent dcbcefc commit 26ec14d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ jobs:
5555
target: ${{ steps.version.outputs.result }}
5656
gpr:
5757
needs: metadata
58-
permissions:
59-
packages: write
6058
runs-on: ubuntu-latest
6159
environment:
6260
name: gpr
6361
url: |
6462
${{ format('{0}/{1}/pkgs/npm/{2}', github.server_url, github.repository,
6563
github.event.repository.name) }}
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.PAT_REPO }}
6666
steps:
6767
- id: checkout
6868
name: Checkout ${{ env.TAG }}
@@ -81,7 +81,7 @@ jobs:
8181
name: Publish package
8282
run: npm publish $ARTIFACT ${{ needs.metadata.outputs.dist-tag }}
8383
env:
84-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84+
NODE_AUTH_TOKEN: ${{ env.GITHUB_TOKEN }}
8585
npm:
8686
needs: [metadata, gpr]
8787
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)