Skip to content

Commit

Permalink
configure permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jun 21, 2024
1 parent 84b4dfe commit 282a624
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Publish
on:
workflow_dispatch:

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -26,9 +29,9 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}"
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN}}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Publish
run: |
Expand Down

0 comments on commit 282a624

Please sign in to comment.