Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
- run: npm run build
- name: Test the publish script
if: matrix.dir == '.'
run: node --test scripts/
run: node --test scripts/publish-npm.test.mjs
2 changes: 1 addition & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: npm install --global npm@11.15.0

- name: Test the publish script
run: node --test scripts/
run: node --test scripts/publish-npm.test.mjs

- name: Build and check both packages, then publish or stage them
id: publish
Expand Down
2 changes: 1 addition & 1 deletion docs/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ the same version, the way the extensions repository publishes its bindings.
| The version is already there | Skips it. |
| Anything else | Publishes through npm trusted publishing. No token is used. |

The logic is in `scripts/publish-npm.mjs`, tested with `node --test scripts/`.
The logic is in `scripts/publish-npm.mjs`, tested with `node --test scripts/publish-npm.test.mjs`.

## One-time setup

Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-npm.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Run with: node --test scripts/
// Run with: node --test scripts/publish-npm.test.mjs
import assert from 'node:assert/strict';
import { mkdirSync, mkdtempSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
Expand Down
Loading