Skip to content

Commit 766c753

Browse files
authored
Setup trusted publishing
Added permissions for id-token and updated node version to lts.
1 parent d274fb4 commit 766c753

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343

4444
runs-on: ubuntu-latest
4545

46+
permissions:
47+
id-token: write
48+
4649
env:
4750
NODE_ENV: production
4851

@@ -53,6 +56,7 @@ jobs:
5356
- name: Setup node
5457
uses: actions/setup-node@v6
5558
with:
59+
node-version: lts
5660
registry-url: 'https://registry.npmjs.org'
5761

5862
- name: Install Dependencies
@@ -68,5 +72,3 @@ jobs:
6872

6973
- name: Publish
7074
run: npm publish
71-
env:
72-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)