Skip to content

Commit 9b78a02

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 9b78a02

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,15 @@ 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 lint:ci
3129

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

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// -*- jsonc -*-
22
{
33
"editor.codeActionsOnSave": {
4-
"source.fixAll.eslint": "explicit"
4+
"source.fixAll.eslint": true
55
},
66
"editor.formatOnSave": true,
77
"editor.defaultFormatter": "esbenp.prettier-vscode",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/foxglove/just-fetch.git"
9+
"url": "https://github.com/foxglove/just-fetch.git"
1010
},
1111
"author": {
1212
"name": "Foxglove",

0 commit comments

Comments
 (0)