Publish a package using bun #5365
infodusha
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So basically when I did migration of my packages I has issues when publishing.
Since bun has no publish command you actually have to install npm:
bun add -g npm
Therefore, you need to auth and that may be not that clear in CI -
NODE_AUTH_TOKEN
env no more works when running npm with bun.I found a solution in the bun codebase.
What you need it to add
.npmrc
with following content:So you can read auth token from env again and everything works.
Beta Was this translation helpful? Give feedback.
All reactions