Skip to content

Commit d3c6baa

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 7724621 commit d3c6baa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- run: corepack enable
2222
- uses: actions/setup-node@v6
2323
with:
24-
node-version: 22.x
24+
node-version: 16.x
2525
cache: yarn
2626
registry-url: https://registry.npmjs.org
2727

@@ -31,4 +31,4 @@ jobs:
3131
- run: yarn pack
3232
- name: Publish to NPM
3333
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
34-
run: npx npm@latest publish package.tgz --provenance --access public
34+
run: yarn npm publish package.tgz --access public --provenance

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@
6666
"author": {
6767
"name": "Foxglove Technologies",
6868
"email": "support@foxglove.dev"
69-
}
69+
},
70+
"packageManager": "yarn@4.12.0"
7071
}

0 commit comments

Comments
 (0)