Conversation
The Publish workflow failed for every package of the 2026-09-21 release
(storefront-app 2.0.0-beta.229, storefront-template 2.0.0-beta.301,
storefront-renderer). `npm i` aborted right away with
"Failed to replace env in config: ${NODE_AUTH_TOKEN}": setup-node writes
`.npmrc` referencing that variable and, since v7 (#1300), no longer
exports a placeholder value for later steps, so npm 6 on Node 14 bails
out. With no node_modules, `npx lerna` then fell back to the runner's
global latest lerna, which crashed on Node 14.
Set NODE_AUTH_TOKEN at the job level, run the repo's lerna bin
explicitly, and add a `workflow_dispatch` input so a failed publish can
be retried for one package without re-tagging.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
vitorrgg
force-pushed
the
ci/publish-use-local-lerna
branch
from
September 22, 2026 02:44
0e8f5af to
1a154f3
Compare
Member
|
Fechando: o 5cbed4d já entrou no master com o mesmo fix ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema
O workflow Publish falhou nas 3 execuções do release de 21/09 (
storefront-app@2.0.0-beta.229,storefront-template@2.0.0-beta.301,storefront-renderer). Consequência: o@ecomplus/storefront-app@2.0.0-beta.229(fix #1314 do checkout) não está no npm,latestcontinuabeta.228.Causa: o
npm iabortou logo no início comO
setup-nodegrava um.npmrccom${NODE_AUTH_TOKEN}e, a partir da v7 (#1300, agosto), deixou de exportar um valor placeholder para os passos seguintes. O npm 6 do Node 14 aborta quando a variável não existe. No último publish bem-sucedido (31/07,setup-node@v6) o passonpm itinhaNODE_AUTH_TOKEN: XXXXX…no env. Semnode_modules, onpx lerna runcaiu no lerna global (latest) do runner, que exige Node 18+ e quebrou comCannot read property 'startsWith' of undefined.Mudança
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}no env do job (o passo de publish já usava o mesmo secret)../node_modules/.bin/lerna run ...em vez denpx lerna run ....workflow_dispatchcom inputpackagepara reexecutar a publicação de um pacote sem re-taguear. O eventoregistry_packagesegue funcionando como antes.Depois do merge
🤖 Generated with Claude Code