mholt / json-to-go

Translates JSON into a Go type in your browser instantly (original)
https://mholt.github.io/json-to-go/
MIT License
4.48k stars 473 forks source link

Package for npm #124

Open verhovsky opened 7 months ago

verhovsky commented 7 months ago

I want to use json-to-go in my project and releasing it on npm would make it easy for me to do that.

In order to make this work you have to make an account on npm https://www.npmjs.com/signup generate an Access Token (click on profile picture in the top right) and then add that key as a Secret in the GitHub repo as NPM_TOKEN https://github.com/mholt/json-to-go/settings/secrets/actions . After that, when you create a new Release on GitHub https://github.com/mholt/json-to-go/releases/new it should automatically publish to npm.

mholt commented 6 months ago

Thanks for this, but... unfortunately I'm not really interested in releasing this on npm (for various reasons).

I'll leave this open though in case I change my mind. :)