Skip to content

Commit c52484d

Browse files
Copilotdmattia
andcommitted
Update to yarn 4.12.0, Node 22, and add provenance to npm publish
- Run yarn set version 4.12.0 - Update all CI jobs to use Node.js 22.x instead of 14.x - Add --provenance flag to npm publish for attestation - GitHub packages publish remains without provenance flag Co-authored-by: dmattia <8922077+dmattia@users.noreply.github.com>
1 parent 713e047 commit c52484d

File tree

5 files changed

+953
-796
lines changed

5 files changed

+953
-796
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14-
- name: Use Node.js 14.x
14+
- name: Use Node.js 22.x
1515
uses: actions/setup-node@v6
1616
with:
17-
node-version: 14.x
17+
node-version: 22.x
1818
- run: yarn install --immutable
1919
- run: yarn depcheck
2020

@@ -25,10 +25,10 @@ jobs:
2525
with:
2626
fetch-depth: 100 # need the history to do a changed files check below (source, origin)
2727
- uses: actions/setup-python@v2
28-
- name: Use Node.js 14.x
28+
- name: Use Node.js 22.x
2929
uses: actions/setup-node@v6
3030
with:
31-
node-version: 14.x
31+
node-version: 22.x
3232
- run: yarn install --immutable
3333
- uses: pre-commit/action@v3.0.0
3434
with:
@@ -38,10 +38,10 @@ jobs:
3838
runs-on: ubuntu-latest
3939
steps:
4040
- uses: actions/checkout@v2
41-
- name: Use Node.js 14.x
41+
- name: Use Node.js 22.x
4242
uses: actions/setup-node@v6
4343
with:
44-
node-version: 14.x
44+
node-version: 22.x
4545
- run: yarn install --immutable
4646
- name: Build the typescript code
4747
run: cd typescript && yarn && yarn build
@@ -62,15 +62,15 @@ jobs:
6262
uses: actions/checkout@v2
6363
- uses: actions/setup-node@v6
6464
with:
65-
node-version: '14.x'
65+
node-version: '22.x'
6666
registry-url: 'https://registry.npmjs.org'
6767
# See: https://docs.npmjs.com/trusted-publishers
6868
# See: https://github.com/actions/setup-node/issues/1445
6969
- name: Set npm to version that supports trusted publishers
7070
run: npm install -g npm@11.5.1
7171
shell: bash
7272
- name: Publish to yarn/npm
73-
run: yarn && cd typescript && yarn npm publish
73+
run: yarn && cd typescript && yarn npm publish --provenance
7474

7575
build-to-github-packages:
7676
if: github.ref == 'refs/heads/main'
@@ -84,7 +84,7 @@ jobs:
8484
uses: actions/checkout@v2
8585
- uses: actions/setup-node@v6
8686
with:
87-
node-version: '14.x'
87+
node-version: '22.x'
8888
- name: Install dependencies
8989
run: yarn
9090
- name: Configure Github Packages authentication

.yarn/releases/yarn-3.2.0.cjs

Lines changed: 0 additions & 785 deletions
This file was deleted.

0 commit comments

Comments
 (0)