From 2ae8976292dcaff24896136ee7d66cbe8f452906 Mon Sep 17 00:00:00 2001 From: kingchenc Date: Sun, 28 Jun 2026 02:44:50 +0200 Subject: [PATCH] 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. --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32890378..149f8232 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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