Skip to content

fix(ci): avoid unresolved npm auth during cache setup - #28

Merged
ahnafnafee merged 1 commit into
masterfrom
fix/release-cache-auth
Aug 30, 2026
Merged

ahnafnafee merged 1 commit into
masterfrom
fix/release-cache-auth

Conversation

@ahnafnafee

Copy link
Copy Markdown
Owner

Summary

  • remove the unused npm registry configuration from the release workflow's setup-node step
  • keep Yarn dependency caching enabled without generating an npm auth entry
  • prevent setup-node v7 from evaluating an unset NODE_AUTH_TOKEN during cache discovery

Root cause

actions/setup-node v7 removed its dummy NODE_AUTH_TOKEN fallback. When registry-url is configured without a token, the action generates an npm configuration containing an unresolved token placeholder. Its Yarn Classic cache setup then runs yarn cache dir, which aborts before dependencies are installed.

This workflow publishes VSIX artifacts through vsce and ovsx; it does not publish an npm package, so registry-url was unnecessary.

Verification

  • reproduced the exact yarn cache dir failure with NODE_AUTH_TOKEN unset
  • confirmed the same repro passes after removing registry-url
  • actionlint
  • yarn install --frozen-lockfile
  • yarn lint
  • yarn audit --json (0 findings)
  • yarn test (7 passing)

README.md is unchanged.

setup-node v7 no longer provides a dummy NODE_AUTH_TOKEN when registry-url is configured. During Yarn Classic cache discovery, the generated npm configuration therefore contains an unresolved token placeholder and aborts the release job before dependency installation.

Remove registry-url from the Node setup step because this workflow publishes VSIX artifacts through vsce and ovsx rather than npm. Yarn caching remains enabled without creating an unused authenticated npm configuration.

The exact yarn cache dir reproduction failed before the change and passed afterward with NODE_AUTH_TOKEN unset. actionlint, frozen install, lint, the zero-finding dependency audit, and all 7 extension-host tests also passed.
@ahnafnafee
ahnafnafee merged commit 186d690 into master Aug 30, 2026
5 checks passed
@ahnafnafee
ahnafnafee deleted the fix/release-cache-auth branch August 30, 2026 00:57
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