Skip to content

Commit 591276a

Browse files
dgreifCopilot
andcommitted
build: pin actions and switch npm publish to oidc
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent acd1764 commit 591276a

6 files changed

Lines changed: 27 additions & 35 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ updates:
44
directory: /
55
schedule:
66
interval: weekly
7+
groups:
8+
npm:
9+
patterns:
10+
- "*"
711
- package-ecosystem: github-actions
812
directory: /
913
schedule:
1014
interval: weekly
11-
cooldown:
12-
default-days: 3

.github/workflows/nodejs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ 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.
10-
- uses: actions/checkout@v4
9+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1110
- name: Use Node.js
12-
uses: actions/setup-node@v4
11+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1312
with:
1413
node-version: 26
1514
cache: npm

.github/workflows/publish.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ 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.
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
15+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
16+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1817
with:
1918
node-version: 26
2019
registry-url: https://registry.npmjs.org/
@@ -25,7 +24,4 @@ jobs:
2524
- run: npm version ${TAG_NAME} --git-tag-version=false
2625
env:
2726
TAG_NAME: ${{ github.event.release.tag_name }}
28-
# TODO: This job publishes with an npm token; review secret scope before widening triggers or permissions.
29-
- run: npm whoami; npm --ignore-scripts publish --provenance
30-
env:
31-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
27+
- run: npm publish --ignore-scripts --provenance

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package-lock.json

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

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"eslint": "^8.0.1",
3131
"eslint-plugin-github": "^5.0.2",
3232
"nodejs-websocket": "^1.7.2",
33-
"playwright": "1.55.1",
33+
"playwright": "^1.60.0",
3434
"rollup": "^4.24.0",
3535
"typescript": "^5.6.3",
3636
"vitest": "^4.1.7"
@@ -41,8 +41,5 @@
4141
"plugin:github/recommended",
4242
"plugin:github/typescript"
4343
]
44-
},
45-
"engines": {
46-
"node": ">=26"
4744
}
4845
}

0 commit comments

Comments
 (0)