Skip to content

Commit 11ede04

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 d6a8416 commit 11ede04

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ jobs:
4040
- run: yarn workspace @foxglove/omgidl-parser pack
4141
- name: Publish `omgidl-parser` to NPM
4242
if: ${{ startsWith(github.ref, 'refs/tags/omgidl-parser/v') }}
43-
run: npx npm@latest publish packages/omgidl-parser/package.tgz --provenance --access public
43+
run: yarn npm publish packages/omgidl-parser/package.tgz --access public --provenance
4444

4545
- run: yarn workspace @foxglove/omgidl-serialization pack
4646
- name: Publish `omgidl-serialization` to NPM
4747
if: ${{ startsWith(github.ref, 'refs/tags/omgidl-serialization/v') }}
48-
run: npx npm@latest publish packages/omgidl-serialization/package.tgz --provenance --access public
48+
run: yarn npm publish packages/omgidl-serialization/package.tgz --access public --provenance
4949

5050
- run: yarn workspace @foxglove/ros2idl-parser pack
5151
- name: Publish `ros2idl-parser` to NPM
5252
if: ${{ startsWith(github.ref, 'refs/tags/ros2idl-parser/v') }}
53-
run: npx npm@latest publish packages/ros2idl-parser/package.tgz --provenance --access public
53+
run: yarn npm publish packages/ros2idl-parser/package.tgz --access public --provenance

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"email": "contact@foxglove.dev",
3737
"url": "https://foxglove.dev/"
3838
},
39-
"packageManager": "yarn@4.5.3",
39+
"packageManager": "yarn@4.12.0",
4040
"devDependencies": {
4141
"@foxglove/eslint-plugin": "2.1.0",
4242
"@types/jest": "29.5.14",

0 commit comments

Comments
 (0)