Skip to content

Commit b475e60

Browse files
committed
chore: publish npm packages using trusted publishing
1 parent 61f701b commit b475e60

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/loud-cups-hammer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@badrap/libapp": patch
3+
---
4+
5+
Publish npm packages using trusted publishing

.github/workflows/version-or-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
with:
2424
node-version: 22
2525
cache: npm
26+
registry-url: "https://registry.npmjs.org"
2627
- run: npm ci
2728
- run: npm run lint
2829
- run: npm run typecheck
@@ -43,6 +44,10 @@ jobs:
4344
with:
4445
node-version: 22
4546
cache: npm
47+
registry-url: "https://registry.npmjs.org"
48+
# Ensure npm 11.5.1 or later is installed for OIDC authentication.
49+
- name: Update npm
50+
run: npm install -g npm@latest
4651
- name: Install dependencies
4752
run: npm ci
4853
- name: Create Release Pull Request or Publish to npm
@@ -53,4 +58,3 @@ jobs:
5358
publish: npm run release
5459
env:
5560
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)