Skip to content

Commit

Permalink
cd: use PAT instead of permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
almahdi404 committed Sep 8, 2024
1 parent 5318450 commit ab71b52
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ on:
branches:
- main

permissions:
id-token: write
contents: write
pull-requests: write

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
Expand All @@ -20,7 +15,7 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PAT }}

- name: Setup Node.js 20
uses: actions/setup-node@v3
Expand All @@ -35,5 +30,5 @@ jobs:
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit ab71b52

Please sign in to comment.