Skip to content

Commit

Permalink
chore: use pat token
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Oct 15, 2024
1 parent 3384712 commit 7d47716
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT_TOKEN }}

- uses: ./.github/actions/node
with:
working-directory: ${{ env.WORKING_DIRECTORY }}
working-directory: ${{ env.GH_PAT_TOKEN }}

- run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
workflow_dispatch:

permissions:
contents: write
id-token: write

concurrency:
Expand All @@ -24,6 +25,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT_TOKEN }}

- uses: ./.github/actions/node
with:
Expand All @@ -47,4 +49,5 @@ jobs:
pnpm whoami
pnpm release
env:
GH_TOKEN: ${{ secrets.GH_PAT_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 7d47716

Please sign in to comment.