Skip to content

fix(ci): fix npm auth in generator-cli publish workflow and bump to 0.4.3#10494

Merged
jsklan merged 2 commits intomainfrom
devin/1762897206-fix-generator-cli-publish
Nov 12, 2025
Merged

fix(ci): fix npm auth in generator-cli publish workflow and bump to 0.4.3#10494
jsklan merged 2 commits intomainfrom
devin/1762897206-fix-generator-cli-publish

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

Description

Refs https://github.com/fern-api/fern/actions/runs/19142492030/job/54711664883

Fixes the failing publish-generator-cli GitHub Actions workflow that was encountering npm authentication errors (ENEEDAUTH). The workflow was attempting to manually write to ~/.npmrc, but npm was not reading from that location during publish.

Changes Made

  • Added explicit setup-node step with registry-url configuration before the publish step
  • Changed authentication to use NODE_AUTH_TOKEN environment variable (the standard approach for actions/setup-node)
  • Removed manual .npmrc file creation that was being ignored
  • Bumped generator-cli version to 0.4.3 with appropriate changelog entry

Testing

  • Lint checks passed locally (pnpm run check)
  • Workflow changes can only be validated when CI runs (will trigger on merge since versions.yml changed)

Review Notes

Important: Merging this PR will trigger the publish workflow since packages/generator-cli/versions.yml was modified. The workflow should now successfully authenticate and publish version 0.4.3 to npm.

The fix follows GitHub Actions best practices for npm publishing as documented in the actions/setup-node README.


Link to Devin run: https://app.devin.ai/sessions/a9c49e7f77e24508950c52c5e45d0b8a
Requested by: judah@buildwithfern.com (@jsklan)

….4.3

Co-Authored-By: judah@buildwithfern.com <jsklan.development@gmail.com>
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Co-Authored-By: judah@buildwithfern.com <jsklan.development@gmail.com>
@jsklan jsklan merged commit f26e171 into main Nov 12, 2025
100 checks passed
@jsklan jsklan deleted the devin/1762897206-fix-generator-cli-publish branch November 12, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants