Skip to content

Commit

Permalink
ci: fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Aug 5, 2024
1 parent 750b42e commit 65fe922
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ on:

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -29,6 +28,9 @@ jobs:
prerelease: false

publish:
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -41,3 +43,4 @@ jobs:
yarn release:publish${{ contains(github.ref_name, 'alpha') && ':alpha' || contains(github.ref_name, 'beta') && ':beta' || '' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

0 comments on commit 65fe922

Please sign in to comment.