Skip to content

Commit

Permalink
fix(ci): replace token usage
Browse files Browse the repository at this point in the history
  • Loading branch information
eran-frontegg committed Oct 30, 2023
1 parent 680a54f commit 5c0e323
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,28 @@ on:
branches: [ master, next ]

env:
GH_TOKEN: ${{ secrets.GH_ADMIN_REPO_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

permissions:
contents: write
issues: write
pull-requests: write

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_ADMIN_REPO_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set git config
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.event.pusher.email }}"
env:
GITHUB_TOKEN: ${{ secrets.GH_ADMIN_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 5c0e323

Please sign in to comment.