Skip to content

Commit 7c8659c

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 4656322 commit 7c8659c

File tree

5 files changed

+2156
-1589
lines changed

5 files changed

+2156
-1589
lines changed

.github/workflows/ci.yml

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

.yarn/install-state.gz

175 KB
Binary file not shown.

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"version": "1.3.1",
55
"description": "Isomorphic ponyfill wrapping native browser fetch and node-fetch",
66
"license": "MIT",
7+
"packageManager": "yarn@4.12.0",
78
"repository": {
89
"type": "git",
910
"url": "git+https://github.com/foxglove/just-fetch.git"

0 commit comments

Comments
 (0)