Skip to content

Commit 3629163

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 3629163

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v6
21-
- run: corepack enable
2221
- uses: actions/setup-node@v6
2322
with:
24-
node-version: 22.x
23+
node-version: 16.x
2524
cache: yarn
2625
registry-url: https://registry.npmjs.org
2726

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

0 commit comments

Comments
 (0)