Publish a package using bun #5365
infodusha
started this conversation in
Show and tell
Replies: 1 comment
-
|
Now bun supports publish but you will likely still fail in CI publishing - that is because bun uses (and you don't need |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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 npmTherefore, you need to auth and that may be not that clear in CI -
NODE_AUTH_TOKENenv no more works when running npm with bun.I found a solution in the bun codebase.
What you need it to add
.npmrcwith following content:So you can read auth token from env again and everything works.
Beta Was this translation helpful? Give feedback.
All reactions