Skip to content

Commit 9d81993

Browse files
chore: update npm to ^11.5.1 for OIDC auth support, set node version to LTS 22
Signed-off-by: Jonathan Norris <[email protected]>
1 parent 973a79e commit 9d81993

File tree

7 files changed

+2553
-662
lines changed

7 files changed

+2553
-662
lines changed

.github/workflows/audit-pending-releases.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
push:
33
branches:
4-
- 'release-please**'
4+
- "release-please**"
55

66
env:
77
CORE_PACKAGE: core
@@ -29,6 +29,6 @@ jobs:
2929
- name: Setup Node
3030
uses: actions/setup-node@v4
3131
with:
32-
node-version: 20
32+
node-version: 22
3333
registry-url: "https://registry.npmjs.org"
34-
cache: 'npm'
34+
cache: "npm"

.github/workflows/coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
registry-url: 'https://registry.npmjs.org'
19-
node-version: 20
20-
cache: 'npm'
18+
registry-url: "https://registry.npmjs.org"
19+
node-version: 22
20+
cache: "npm"
2121

2222
- name: Install
2323
run: npm ci

.github/workflows/pr-checks.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/setup-node@v4
2727
with:
2828
node-version: ${{ matrix.node-version }}
29-
cache: 'npm'
29+
cache: "npm"
3030

3131
- name: Install
3232
run: npm ci
@@ -50,8 +50,8 @@ jobs:
5050
- uses: actions/checkout@v4
5151
- uses: actions/setup-node@v4
5252
with:
53-
node-version: 20
54-
cache: 'npm'
53+
node-version: 22
54+
cache: "npm"
5555

5656
- name: Install
5757
run: npm ci
@@ -72,8 +72,8 @@ jobs:
7272
- uses: actions/checkout@v4
7373
- uses: actions/setup-node@v4
7474
with:
75-
node-version: 20
76-
cache: 'npm'
75+
node-version: 22
76+
cache: "npm"
7777

7878
- name: Install
7979
run: npm ci

.github/workflows/release-please.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ on:
22
push:
33
branches:
44
- main
5+
56
name: Run Release Please
7+
68
jobs:
79
release-please:
810
runs-on: ubuntu-latest
@@ -38,17 +40,16 @@ jobs:
3840
- name: Setup Node
3941
uses: actions/setup-node@v4
4042
with:
41-
node-version: 20
43+
node-version: 22
4244
- name: Generate SBOM
4345
run: |
44-
npm install -g npm@^10.2.0
46+
npm install -g npm@^11.5.1
4547
npm ci
4648
npm sbom --sbom-format=cyclonedx --omit=dev --omit=peer --workspace=${{matrix.release}} > bom.json
4749
- name: Attach SBOM to artifact
4850
env:
4951
GITHUB_TOKEN: ${{secrets.RELEASE_PLEASE_ACTION_TOKEN}}
50-
run:
51-
gh release upload $TAG bom.json
52+
run: gh release upload $TAG bom.json
5253

5354
npm-release:
5455
needs: release-please
@@ -65,9 +66,11 @@ jobs:
6566
- name: Setup Node
6667
uses: actions/setup-node@v4
6768
with:
68-
node-version: 20
69+
node-version: 22
6970
registry-url: "https://registry.npmjs.org"
70-
cache: 'npm'
71+
cache: "npm"
72+
- name: Update npm (for OIDC auth)
73+
run: npm install -g npm@^11.5.1
7174
- name: Build Packages
7275
run: |
7376
npm ci
@@ -77,7 +80,6 @@ jobs:
7780
# Our scripts only publish versions that do not already exist.
7881
- name: Publish to NPM
7982
env:
80-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
8183
# https://docs.npmjs.com/generating-provenance-statements
8284
NPM_CONFIG_PROVENANCE: true
8385
run: npm run publish-all

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ typedoc
112112

113113
# IDE
114114
.idea
115+
.cursor/
115116

116117
# license files copied from root
117118
packages/**/LICENSE

0 commit comments

Comments
 (0)