diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index fdf1078d..b0615209 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -507,7 +507,7 @@ jobs: jq -e --arg version "$version" '. == $version' "$RUNNER_TEMP/npm-version.json" > /dev/null echo "::notice::$name@$version is already published; skipping npm publication for this image rebuild." elif jq -e '.error.code == "E404"' "$RUNNER_TEMP/npm-version.json" > /dev/null; then - npm publish "$archive" --ignore-scripts --access public --registry=https://registry.npmjs.org + npm publish "./$archive" --ignore-scripts --access public --registry=https://registry.npmjs.org else echo '::error::Could not check the published npm version; refusing to publish.' exit 1 diff --git a/test/back/npm-publication.test.cjs b/test/back/npm-publication.test.cjs index fb959171..9bae1213 100644 --- a/test/back/npm-publication.test.cjs +++ b/test/back/npm-publication.test.cjs @@ -75,7 +75,7 @@ case 'network': console.log('upstream unavailable'); process.exit(1); assert.equal(fs.existsSync(path.join(root, 'published')), published); if (published) assert.deepEqual(JSON.parse(fs.readFileSync(path.join(root, 'published'), 'utf8')), [ - 'npm-panel/verified.tgz', '--ignore-scripts', '--access', 'public', '--registry=https://registry.npmjs.org', + './npm-panel/verified.tgz', '--ignore-scripts', '--access', 'public', '--registry=https://registry.npmjs.org', ]); }); }