[actions] TOC: use node/install instead of setup-node

`lts/*` is now node 26, which is not in the runner's tool cache,
so `setup-node` downloads it from a GitHub release asset host that the harden-runner allowlist blocks.
`node/install` installs node with nvm from nodejs.org, like the other workflows.
This commit is contained in:
Jordan Harband committed 2026-11-02 13:42:07 -06:00
1 parent 16df5aa69a
commit 799de1d2dc
1 file changed
+4 -2
+4 -2
View File
@@ -19,6 +19,8 @@ jobs:
with:
allowed-endpoints:
github.com:443
raw.githubusercontent.com:443
nodejs.org:443
registry.npmjs.org:443
api.github.com:443
- uses: actions/checkout@v6
@@ -29,10 +31,10 @@ jobs:
# pulls all tags (needed for lerna / semantic release to correctly version)
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- uses: actions/setup-node@v6
- uses: ljharb/actions/node/install@main
name: 'nvm install lts/* && npm install'
with:
node-version: 'lts/*'
- run: npm install
- run: npm run doctoc
- name: commit changes
uses: ljharb/actions-js-build/commit@v3+amendpush