Skip to content

Commit d8e066d

Browse files
dgreifCopilot
andcommitted
build: adopt supply chain defaults
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c445546 commit d8e066d

4 files changed

Lines changed: 19 additions & 3 deletions

File tree

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
- package-ecosystem: github-actions
8+
directory: /
9+
schedule:
10+
interval: weekly
11+
cooldown:
12+
default-days: 3

.github/workflows/nodejs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9+
# TODO: Pin third-party actions to full commit SHAs after validating the current tags.
910
- uses: actions/checkout@v4
1011
- name: Use Node.js
1112
uses: actions/setup-node@v4
1213
with:
13-
node-version: 24
14+
node-version: 26
1415
cache: npm
15-
- run: npm install
16+
- run: npm ci
1617
- run: npx playwright install chromium
1718
- run: npm run build
1819
- run: npm test

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ jobs:
1212
publish-npm:
1313
runs-on: ubuntu-latest
1414
steps:
15+
# TODO: Pin third-party actions to full commit SHAs after validating the current tags.
1516
- uses: actions/checkout@v4
1617
- uses: actions/setup-node@v4
1718
with:
18-
node-version: 24
19+
node-version: 26
1920
registry-url: https://registry.npmjs.org/
2021
cache: npm
2122
- run: npm ci
@@ -24,6 +25,7 @@ jobs:
2425
- run: npm version ${TAG_NAME} --git-tag-version=false
2526
env:
2627
TAG_NAME: ${{ github.event.release.tag_name }}
28+
# TODO: This job publishes with an npm token; review secret scope before widening triggers or permissions.
2729
- run: npm whoami; npm --ignore-scripts publish --provenance
2830
env:
2931
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.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)