Skip to content

Commit d19638a

Browse files
committed
Improve supply chain configuration
Update CI and publish workflows to use Node 26, npm ci, and pinned GitHub Actions SHAs. Add npm min-release-age configuration and refresh the lockfile after npm install/audit fix.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4de6e65 commit d19638a

4 files changed

Lines changed: 20 additions & 14 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
contents: read
1212
id-token: write
1313
steps:
14-
- uses: actions/checkout@v5
15-
- uses: actions/setup-node@v5
14+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
15+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
1616
with:
17-
node-version: 24
17+
node-version: 26
1818
registry-url: https://registry.npmjs.org/
1919
cache: npm
2020
- run: npm ci
@@ -31,10 +31,10 @@ jobs:
3131
packages: write
3232
id-token: write
3333
steps:
34-
- uses: actions/checkout@v5
35-
- uses: actions/setup-node@v5
34+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
35+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
3636
with:
37-
node-version: 24
37+
node-version: 26
3838
registry-url: https://npm.pkg.github.com
3939
cache: npm
4040
- run: npm ci

.github/workflows/test.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
name: Node CI
22

3+
permissions:
4+
contents: read
5+
36
on: [push]
47

58
jobs:
69
build:
710
runs-on: ubuntu-latest
811
steps:
9-
- uses: actions/checkout@v2
10-
- name: Use Node.js 24.x
11-
uses: actions/setup-node@v5
12+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
13+
- name: Use Node.js 26.x
14+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
1215
with:
13-
node-version: 24.x
14-
- name: npm install, build, and test
16+
node-version: 26.x
17+
cache: npm
18+
- name: npm ci and test
1519
run: |
16-
npm it
20+
npm ci
21+
npm test
1722
env:
1823
CI: true

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
min-release-age=3

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)