rushstack icon indicating copy to clipboard operation
rushstack copied to clipboard

rush publish fail.

Open takegine opened this issue 2 years ago • 1 comments

im sorry to write here , but i had no idea.

I'm going to replace lerna with rush, but I'm having trouble releasing the package of Organizations.

when i ran rush publish -p -a,i got these error

 You should bug the author to publish it (or use the name yourself!)

I checked npm whoami and it printed out my npm account,then republish still fails. i npm login again , then republish still fails.

i had try get new Access Tokens in npmjs.com, and ran rush publish -p --include-all -n npm_.., it works.

This is too complicated, how can I use it correctly?

takegine avatar Sep 07 '22 02:09 takegine

Rush uses the common/config/rush/.npmrc-publish npmrc file during publishing. Make sure that contains the settings that you expect for publishing. The one in this repo puts the NPM auth token in an environment variable called NPM_AUTH_TOKEN that we populate during the publishing pipeline from a pipeline secret (see here).

This is designed around publishing using an account for the package feed (whether it's the public npm feed or a private feed on another service, like Azure DevOps) with credentials only accessible to a few pipelines. If you want to just publish packages manually from your local machine, you should be able to just delete the common/config/rush/.npmrc-publish and common/config/rush/.npmrc files, and Rush will use your ~/.npmrc instead. Keep in mind that this will use your profile .npmrc for everything, including rush install.

iclanton avatar Sep 12 '22 18:09 iclanton

Rush uses the common/config/rush/.npmrc-publish npmrc file during publishing. Make sure that contains the settings that you expect for publishing. The one in this repo puts the NPM auth token in an environment variable called NPM_AUTH_TOKEN that we populate during the publishing pipeline from a pipeline secret (see here).

This is designed around publishing using an account for the package feed (whether it's the public npm feed or a private feed on another service, like Azure DevOps) with credentials only accessible to a few pipelines. If you want to just publish packages manually from your local machine, you should be able to just delete the common/config/rush/.npmrc-publish and common/config/rush/.npmrc files, and Rush will use your ~/.npmrc instead. Keep in mind that this will use your profile .npmrc for everything, including rush install.

why i use rush publish -a -b main --add-commit-details --set-access-level public -p its not working?( It notice Rush publish finished successfully. but not publish to npm)

and use rush publish --apply --publish --include-all --target-branch main --add-commit-details --set-access-level public reference from here its working.

What is the difference between these two commands?

It seems like is --include-all parameter make effect, but i saw this parameter is use in pack mode on this doc , and Is it related to shouldPublish field?

BryanAdamss avatar Dec 14 '22 08:12 BryanAdamss