Skip to content

Commit 36782ad

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 57445c3 commit 36782ad

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
@@ -36,4 +36,4 @@ jobs:
3636
- run: yarn pack
3737
- name: Publish to NPM
3838
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
39-
run: npx npm@latest publish package.tgz --provenance --access public
39+
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.52.0"
5454
},
55-
"packageManager": "yarn@4.9.2"
55+
"packageManager": "yarn@4.12.0"
5656
}

0 commit comments

Comments
 (0)