Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ jobs:
- uses: actions/setup-node@v4
if: steps.check.outputs.changed == 'true'
with:
node-version: 24
# trusted publishing needs npm >= 11.5.1
- run: npm install -g npm@^11.5.1 && npm --version
if: steps.check.outputs.changed == 'true'
node-version: 20
# install with the npm that wrote package-lock.json (npm 11's `npm ci`
# rejects this lockfile's missing optional platform packages)
- run: npm ci
if: steps.check.outputs.changed == 'true'
env:
ONNXRUNTIME_NODE_INSTALL_CUDA: skip
# trusted publishing needs npm >= 11.5.1
- run: npm install -g npm@^11.5.1 && npm --version
if: steps.check.outputs.changed == 'true'
- run: npm publish
if: steps.check.outputs.changed == 'true'
- name: Version unchanged
Expand Down
Loading