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...
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 :-(
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...