Skip to content

Commit a79cb91

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 72ad0e0 commit a79cb91

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,17 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v6
22-
- run: corepack enable
2322
- uses: actions/setup-node@v6
2423
with:
25-
node-version: 22.x
24+
node-version: 16.x
2625
registry-url: https://registry.npmjs.org
27-
cache: yarn
2826

29-
- run: yarn install --immutable
27+
- run: yarn install --frozen-lockfile
3028
- run: yarn run build
3129
- run: yarn run lint:ci
3230
- run: yarn run test
3331

3432
- run: yarn pack
3533
- name: Publish to NPM
3634
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
37-
run: npx npm@latest publish package.tgz --provenance --access public
35+
run: npx npm@11.7.0 publish package.tgz --provenance --access public

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"repository": {
1313
"type": "git",
14-
"url": "git+https://github.com/foxglove/velodyne-cloud.git"
14+
"url": "https://github.com/foxglove/velodyne-cloud.git"
1515
},
1616
"author": {
1717
"name": "Foxglove Technologies Inc",

0 commit comments

Comments
 (0)