Skip to content

Stop adding always-auth to the .npmrc file #1305

Open
@hashtagchris

Description

@hashtagchris

Description:
Stop adding always-auth = (Boolean) to the .npmrc file by default.

Consider removing the always-auth actions input and all related code.

If there's an upcoming major release in the next year or so, this change be incorporated into that to ensure stable workflows aren't impacted.

Justification:
always-auth was removed from the npm cli in 2021: npm/cli@72a7eeb. npm 6 (?) was the last release to honor this flag. See https://docs.npmjs.com/cli/v6/commands/npm-adduser vs newer docs.

npm cli 11 warns npm warn Unknown user config "always-auth". This will stop working in the next major version of npm.

Are you willing to submit a PR?
Yes

Related

Sample workflow run: https://github.com/hashtagchris/junk-drawer/actions/runs/15785443544/job/44500732542#step:5:8

Addition of always-auth: #48

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions