New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish not working for internal Artifactory registry #336
Comments
Provide an example of your .npmrc file |
same issue |
Line 64 in 2bb9bcb
the code just check npmjs token, which is the problem |
I got a similar error in a monorepo using pnpm (
{
"scripts": {
- "publish": "pnpm build && pnpm changeset publish",
+ "publish-changeset": "pnpm build && pnpm changeset publish",
}
}
- name: "Create Release Pull Request or Publish to GCP"
id: changesets
uses: changesets/action@v1
with:
- publish: pnpm publish
+ publish: pnpm publish-changeset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
In my GitHub Workflow I'm creating a .npmrc with connection info for our internal Artifactory registry and then executing the changesets action. It fails on running the
pnpm changesets publish
command with an "incorrect or missing password" and to run npm login. The documentation states that in the presence of a .npmrc, that user defined registry info is used instead. So why does it seem that its failing to use it and expecting an NPM_TOKEN? Here's an excerpt from the failed workflow:The text was updated successfully, but these errors were encountered: