Skip to content

ci: drop registry-url from the demo workflows - #661

Merged
jdrouet merged 1 commit into
mainfrom
ci/demo-drop-registry-url
Jul 30, 2026
Merged

ci: drop registry-url from the demo workflows#661
jdrouet merged 1 commit into
mainfrom
ci/demo-drop-registry-url

Conversation

@jdrouet

@jdrouet jdrouet commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Removes registry-url from example-demo.yml and example-demo-test.yml.

Why

Neither demo workflow publishes to npm, but registry-url makes setup-node write an .npmrc containing a ${NODE_AUTH_TOKEN} placeholder.

setup-node v6 also exported a dummy NODE_AUTH_TOKEN, so the placeholder always resolved. v7 removed that dummy export (actions/setup-node#1558), and yarn 1 hard-fails on an unresolvable env reference:

$ yarn link
yarn link v1.22.22
error Error: Failed to replace env in config: ${NODE_AUTH_TOKEN}
    at envReplace (/usr/local/lib/node_modules/yarn/lib/cli.js:95448:16)

That is what fails the test building demo job on #658. Dropping registry-url stops the .npmrc from being written at all, which unblocks the setup-node v7 bump — and is the right config for these workflows regardless of the action version.

mrml-wasm-release.yml keeps its registry-url: it does publish, via npm publish --provenance with OIDC trusted publishing, and npm does not choke on the unresolved placeholder the way yarn 1 does.

Neither demo workflow publishes to npm, but registry-url makes
setup-node write an .npmrc containing a ${NODE_AUTH_TOKEN} placeholder.
setup-node v6 also exported a dummy NODE_AUTH_TOKEN, so the placeholder
always resolved; v7 removed that dummy export (actions/setup-node#1558),
and yarn 1 hard-fails on an unresolvable env reference:

  error Error: Failed to replace env in config: ${NODE_AUTH_TOKEN}

Dropping registry-url stops the .npmrc from being written at all, which
unblocks the setup-node v7 bump. mrml-wasm-release.yml keeps its
registry-url since it does publish, via OIDC trusted publishing.

Signed-off-by: Jeremie Drouet <jeremie.drouet@gmail.com>
@jdrouet
jdrouet merged commit 3c5357a into main Jul 30, 2026
7 checks passed
@jdrouet
jdrouet deleted the ci/demo-drop-registry-url branch July 30, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant