Skip to content

Commit e3b7dfb

Browse files
committed
Use yarn npm publish with OIDC for trusted publishing
- Upgrade to Yarn 4.12.0 for OIDC support (PR yarnpkg/berry#6898) - Replace npx npm@latest publish --provenance with yarn npm publish - Provenance is automatic with OIDC trusted publishing - Add packageManager field where missing
1 parent 3286fd9 commit e3b7dfb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
- run: yarn pack
3535
- name: Publish to NPM
3636
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
37-
run: npx npm@latest publish package.tgz --provenance --access public
37+
run: yarn npm publish package.tgz --access public --provenance

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@
5252
"typescript": "5.9.3",
5353
"typescript-eslint": "8.13.0"
5454
},
55-
"packageManager": "yarn@4.5.1"
55+
"packageManager": "yarn@4.12.0"
5656
}

0 commit comments

Comments
 (0)