fix(release): napi-rs CLI 3 renamed 'napi artifacts --dir' to '--output-dir'

The napi-3 migration bumped @napi-rs/cli to 3, but release.yml still used the
CLI-2 flag 'napi artifacts --dir'. CLI 3 rejects it ('Unsupported option name'),
failing the npm publish job (and skipping the GitHub Release). This path only
runs on a v* tag, so it was not exercised by the migration PR's CI.
This commit is contained in:
kingchenc
2026-06-28 02:44:50 +02:00
parent 06b05e6c3e
commit 2ae8976292
+2 -1
View File
@@ -381,7 +381,8 @@ jobs:
# drop the freshly built .node binary into the matching directory.
- name: Move binaries into platform package layout
working-directory: bindings/node
run: npx napi artifacts --dir artifacts
# napi-rs CLI 3 renamed `--dir` to `--output-dir` (`-d`).
run: npx napi artifacts --output-dir artifacts
# Publish each platform package individually. Skip versions that are
# already on npm. A first-attempt 403 from npm's spam filter is