Skip to content

Commit 41190e7

Browse files
committed
Change publishing permissions, merge-release
These changes are to enable OIDC trusted publishing
1 parent bad6e61 commit 41190e7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ jobs:
7373
environment: Publish
7474
needs: [build, matrix-tests]
7575
runs-on: ubuntu-latest
76-
if: github.event_name == 'push' && ( github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' )
76+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
77+
permissions:
78+
id-token: write
79+
contents: read
7780
steps:
7881
- uses: actions/checkout@v2
7982

@@ -87,4 +90,3 @@ jobs:
8790
uses: moshen/merge-release@main
8891
env:
8992
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)