fix(ci): fix deps:tree publish failure and add publish resilience#35
Merged
carlos-alm merged 2 commits intomainfrom Feb 23, 2026
Merged
fix(ci): fix deps:tree publish failure and add publish resilience#35carlos-alm merged 2 commits intomainfrom
carlos-alm merged 2 commits intomainfrom
Conversation
The inline node -e command had backticks that sh on Linux interpreted as command substitution, causing `sh: 1: n+t+: not found`. Also, npm ls exits non-zero on ELSPROBLEMS (version mismatches in optional platform-specific deps), which made execSync throw during publish. Fix: move to scripts/gen-deps.cjs with try/catch to handle npm ls failures gracefully, and use --omit=dev to exclude devDependencies.
Add version-exists checks so re-running a failed publish skips already-published packages instead of failing with 409 Conflict. - Check main package before publish steps; if already on npm, skip both platform and main publish (post-publish steps still run) - Check each platform package individually before npm publish; skip with continue if already published
Contributor
Greptile SummaryFixes two critical publish workflow issues: the
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 54a8ce0 |
4 tasks
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.
Summary
deps:treetoscripts/gen-deps.cjs— the inlinenode -ecommand had backticks (markdown fences) thatshon Linux interpreted as command substitution (sh: 1: n+t+: not found), andnpm lsnon-zero exits on ELSPROBLEMS threw inexecSync. The new script handles both with try/catch.npm viewchecks before each platform package publish (skip withcontinueif already on npm) and gate both publish steps on acheck-mainoutput so re-running a partially failed publish skips already-published packages instead of failing with 409 Conflict.What was happening
npm publishtriggersprepare→deps:tree```get interpreted byshas command substitutionnpm ls --allfails with ELSPROBLEMS (native addon version mismatch) →execSyncthrowsTest plan
@optave/codegraphpackage publishes successfully