Skip to content

fix(ci): gate node_modules diagnostic on existing step id#1215

Open
msluszniak wants to merge 1 commit into
mainfrom
@ms/fix-npm-publish-node-modules-1210
Open

fix(ci): gate node_modules diagnostic on existing step id#1215
msluszniak wants to merge 1 commit into
mainfrom
@ms/fix-npm-publish-node-modules-1210

Conversation

@msluszniak
Copy link
Copy Markdown
Member

Description

The "Show packed node_modules" diagnostic in .github/workflows/npm-publish.yml was gated on steps.node_modules.outcome == 'failure', but no step has id: node_modules — the check step's id is check_node_modules. The condition was therefore always undefined and the diagnostic never ran. On a node_modules leak the publish job failed (correctly, via check_node_modules) but the log showing which paths leaked was silently skipped.

This fixes the id reference and drops the exit-code inversion (!) so the step prints the matching paths and reports success.

Introduces a breaking change?

  • Yes
  • No

Type of change

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Documentation update (improves or adds clarity to existing documentation)
  • Other (chores, tests, code style improvements etc.)

Tested on

  • iOS
  • Android

Testing instructions

CI-only change. Verify the workflow still parses and that the Show packed node_modules step references steps.check_node_modules.outcome.

Related issues

Closes #1210

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings

The 'Show packed node_modules' diagnostic in npm-publish.yml was gated
on steps.node_modules.outcome, but no step has id 'node_modules' — the
check step is 'check_node_modules'. The condition was always undefined,
so the diagnostic never ran and a node_modules leak failed the publish
without surfacing the offending paths. Fix the id reference and drop the
exit-code inversion so the step reports success after printing matches.
@msluszniak msluszniak self-assigned this Jun 1, 2026
@msluszniak msluszniak added the bug fix PRs that are fixing bugs label Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix PRs that are fixing bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] npm-publish.yml: "Show packed node_modules" gated on a non-existent step id

1 participant