Skip to content

Commit f933ef6

Browse files
committed
chore: migrate to npm trusted publisher
@see https://docs.npmjs.com/trusted-publishers
1 parent 65718f3 commit f933ef6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push:
44
tags:
55
- v*
6+
permissions:
7+
id-token: write # Required for OIDC @see https://docs.npmjs.com/trusted-publishers
8+
contents: read
69

710
jobs:
811
build:
@@ -12,10 +15,8 @@ jobs:
1215
# Setup .npmrc file to publish to npm
1316
- uses: actions/setup-node@v4
1417
with:
15-
node-version: '>=18.13.0'
18+
node-version: '>=20.0.0'
1619
registry-url: 'https://registry.npmjs.org/'
1720
- run: yarn
1821
- run: yarn run build:lib
1922
- run: yarn publish ./dist/libs/ngx-contextmenu
20-
env:
21-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)