News for hackers. Stuff that matters.
Re:Publish NPM Package with GitHub Actions by ikornaselur on Monday November 18, 2019 @01:09PM (#21566575)
I really like the idea of automating this whole process. While not generic to publishing to pypi, I was playing around with this process in a toy repo I have, where it builds a Rust/Python package, creates a release on Github if I bump the version number, build the package and publishes it on Pypi.

It probably not the cleanest way to do it, but I liked having it "spelled out" in steps manually to play around and learn more about how to do this.

You can see my workflow in the toy repo here: https://github.com/ikornaselur/img-utils/blob/master/.github...

Re:Publish NPM Package with GitHub Actions by tracker1 on Monday November 18, 2019 @01:18PM (#21566661)
since npm version creates a tag, I have an action for v* tags that will build/publish... have migrated a couple projects from travis-ci ... TFA is a bit mixed, you don't need to push to npmrc for this behavior though.

(I did post this link in direct thread, copied here)

https://gist.github.com/tracker1/fdd5ceab8f532afc3a05ab9c0bd...

Re:Publish NPM Package with GitHub Actions by pafo on Monday November 18, 2019 @01:24PM (#21566731)
Yes, you do not need .npmrc for publishing. But I am using Yarn and it didn't work for me to just set NODE_AUTH_TOKEN :-(
Re:Publish NPM Package with GitHub Actions by tracker1 on Monday November 18, 2019 @01:31PM (#21566803)
It does work for `npm publish` ... I'd submit a bug with yarn, and/or github.