Skip to content

Commit b8a67d4

Browse files
dgreifCopilot
andcommitted
Improve supply chain defaults
Pin third-party workflow actions, run CI on Node 26 with npm ci, and add npm minimum release age configuration. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d024d80 commit b8a67d4

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v5
9+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
1010
- name: Use Node.js
11-
uses: actions/setup-node@v5
11+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
1212
with:
13-
node-version: '24.x'
14-
- run: npm install
13+
node-version: '26.x'
14+
- run: npm ci
1515
- run: npm run build --if-present
1616
- run: npm test
1717
env:

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
publish-npm:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v5
16-
- uses: actions/setup-node@v5
15+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
16+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
1717
with:
18-
node-version: 24
18+
node-version: 26
1919
registry-url: https://registry.npmjs.org/
2020
cache: npm
2121
- run: npm ci

.npmrc

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

0 commit comments

Comments
 (0)