Skip to content

Commit 50a44a0

Browse files
authored
Merge pull request #45 from github/copilot/security-defaults-node-26
build: adopt supply chain defaults and Node 26
2 parents c445546 + 67f460c commit 50a44a0

6 files changed

Lines changed: 1420 additions & 1362 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
9+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1010
- name: Use Node.js
11-
uses: actions/setup-node@v4
11+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1212
with:
13-
node-version: 24
13+
node-version: 26
1414
cache: npm
15-
- run: npm install
15+
- run: npm ci
1616
- run: npx playwright install chromium
1717
- run: npm run build
1818
- run: npm test

.github/workflows/publish.yml

Lines changed: 4 additions & 6 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@v4
16-
- uses: actions/setup-node@v4
15+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
16+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1717
with:
18-
node-version: 24
18+
node-version: 26
1919
registry-url: https://registry.npmjs.org/
2020
cache: npm
2121
- run: npm ci
@@ -24,6 +24,4 @@ jobs:
2424
- run: npm version ${TAG_NAME} --git-tag-version=false
2525
env:
2626
TAG_NAME: ${{ github.event.release.tag_name }}
27-
- run: npm whoami; npm --ignore-scripts publish --provenance
28-
env:
29-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
27+
- run: npm publish --ignore-scripts --provenance

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