Skip to content

Update docs to include GitHub ActionsΒ #245

Open
@rostyk-begey

Description

@rostyk-begey

Hello there! πŸ‘‹

I've been working on GitHub Actions configuration for my project and I've spent pretty much time figuring out why I'm getting npm ENEEDAUTH error.

npm ERR! code ENEEDAUTH
npm ERR! need auth This command requires you to be logged in to https://registry.yarnpkg.com/
npm ERR! need auth You need to authorize this machine using npm adduser

But after, I've found this comment in publishment.yml that helped me to solve this issue.

Use npx instead of yarn because yarn automagically sets NPM_* environment variables
like NPM_CONFIG_REGISTRY so npm publish ends up ignoring the .npmrc file
which is set up by setup-node action.

I think it would be really helpful to have GitHub Actions sample configuration in docs (I know there is one for CircleCI).
Or at least include that comment to CI/CD section in docs.

Besides that, I'm really grateful for this tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions