Skip to content

Commit 6ab80be

Browse files
committed
update publish ci
1 parent 43967af commit 6ab80be

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Publish Package to npmjs
22
on:
33
release:
44
types: [published]
5+
6+
permissions:
7+
id-token: write # Required for OIDC
8+
contents: read
9+
510
jobs:
611
build:
712
runs-on: ubuntu-latest
@@ -17,6 +22,7 @@ jobs:
1722
node-version: '20.x'
1823
registry-url: 'https://registry.npmjs.org'
1924
- run: bun install --frozen-lockfile
25+
# Ensure npm 11.5.1 or later is installed
26+
- name: Update npm
27+
run: npm install -g npm@latest
2028
- run: npm publish --provenance --access public
21-
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)