🤖 automating npm publish with github actions

  Рет қаралды 12,711

Brad Garropy

Brad Garropy

Күн бұрын

Пікірлер: 26
@1235niki
@1235niki 3 жыл бұрын
Clean and simple, thanks for this tutorial Brad.
@rajuc6438
@rajuc6438 Жыл бұрын
Thank you for your thorough explanation. It helped a lot
@wacnss
@wacnss 2 жыл бұрын
You've got my like and subscribe. Keep it up.
@nsharma4981
@nsharma4981 3 жыл бұрын
This was really helpful and to the point, exactly what I was looking for! Thanks a bunch :)
@thelord982
@thelord982 2 жыл бұрын
Very helpful. Just what I was looking for. Thanks!
@thelord982
@thelord982 2 жыл бұрын
Maybe you have an idea why package that is written in Typescript, when installed in project, cannot find the module?
@jacobshuman1650
@jacobshuman1650 4 жыл бұрын
Really straightforward, thanks for the help!
@bradgarropy
@bradgarropy 4 жыл бұрын
You're welcome! Thinking about doing another GitHub Actions video about scheduled jobs (aka cron jobs). Would you be interested in seeing that as well?
@jacobshuman1650
@jacobshuman1650 4 жыл бұрын
Brad Garropy I’m trying to learn how to use GitHub actions in general so anything would help! Maybe a basic and potentially and advanced tutorial on getting started with actions?
@bradgarropy
@bradgarropy 4 жыл бұрын
Totally, thanks for the feedback!
@mathewsmachadoamorim5557
@mathewsmachadoamorim5557 3 жыл бұрын
great video man, thanks for it
@koigxiritb7ttgyuv
@koigxiritb7ttgyuv 2 жыл бұрын
very good tutorial, thanks
@kishor-jena
@kishor-jena 2 жыл бұрын
doesn't work for me. it simply not showing any action on github although I have commit and pushed succefully Edit: working now but had to add .nprc
@bradgarropy
@bradgarropy 2 жыл бұрын
Do you have a link to the repository where this is not working? There may be some misconfiguration on the trigger of the actions.
@deeppatel2819
@deeppatel2819 3 жыл бұрын
Hey buddy as of i am looking at this video now after 9 months i want to say that the github doesn't hve a secrets tab and you cannot paste value of token as you did here...so can you provide me some suggestions where can i find the latest techniques?
@bradgarropy
@bradgarropy 3 жыл бұрын
GitHub definitely still has the Settings -> Secrets tab. You can navigate directly there by going to this url: github.com/bradgarropy//settings/secrets/actions And based on the documentation here, Secrets are supported in pretty much every version of GitHub. docs.github.com/en/actions/reference/encrypted-secrets However, it does say "GitHub Actions is not available for private repositories owned by accounts using legacy per-repository plans. For more information, see "GitHub's products." So if you fall into that category you may have to find another way to store secrets.
@deeppatel2819
@deeppatel2819 3 жыл бұрын
@@bradgarropy oh my God...thank you so much buddy...i was banging my head the whole day today..the mistake i did was.i was not looking for secrets tab in the respective repo ..you just saved my rest of the day..thanksss buddy so much💯💯👍
@lucassilverio720
@lucassilverio720 3 жыл бұрын
thanks man, i do to angular libraries and works! amazing!
@salik619
@salik619 3 жыл бұрын
Amazing. Thank you !
@dalefrench
@dalefrench 4 жыл бұрын
Thanks for the help! Would be cool to see how to increment the version number automatically too 🤔
@bradgarropy
@bradgarropy 4 жыл бұрын
Thanks! Automatically updating the version number gets more complicated than you might originally think. You'd have to follow the Conventional Commits guidelines as well as Semantic Versioning to determine how to update the version number. There are three tools that help enable this. - Commitizen - Standard Version - Semantic Release It's a pretty big rabbit hole to go down, but if you maintain and release a lot of open source software it's very much worth it!
@Marcus-ty3pi
@Marcus-ty3pi 3 жыл бұрын
Hi Brad! Thanks for the video. My project requires "npm start" to run on a weekly basis, is this GitHub Actions feature able to do that?
@bradgarropy
@bradgarropy 3 жыл бұрын
Hey Marcus, you can use a scheduled GitHub Action to run an event on a weekly basis. Here's a link to the documentation. docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events When the scheduled action runs, you can either create your own custom JavaScript action that runs whatever Node script you'd like, or call out to a serverless function. Here's how to create your own custom JavaScript action. docs.github.com/en/actions/creating-actions/creating-a-javascript-action And Netlify is a simple way to get a serverless function up and running. I've got a video covering the basics. kzbin.info/www/bejne/oHbMY2WMZqZlfq8
@Marcus-ty3pi
@Marcus-ty3pi 3 жыл бұрын
@@bradgarropy Thank you so much Brad, I will research on them and will definitely check out Nelify as well. I spent so much time trying to deploy it on Heroku but I faced so many errors :( Thanks again for your reply, appreciate it very much!
@rdandnayak
@rdandnayak 3 жыл бұрын
Thanks. helped a lot.
@ziyadkader6767
@ziyadkader6767 4 жыл бұрын
great video !
📦 publishing npm packages
13:32
Brad Garropy
Рет қаралды 1,8 М.
Fully Automated npm publish using GitHub Actions and Semantic Release
26:24
Cache Management with GitHub actions
12:23
Mickey Gousset
Рет қаралды 8 М.
Publish to NPM with GitHub Actions
17:13
Jamie Barton
Рет қаралды 2,9 М.
5 Ways to DevOps-ify your App - Github Actions Tutorial
12:12
Fireship
Рет қаралды 710 М.
Deploy To Shared Hosting With Github Actions
15:19
Watch and Learn
Рет қаралды 45 М.
GitHub Packages.. Containers in a GitHub repo?
15:28
DevOps Journey
Рет қаралды 19 М.
Blazing Fast Tips: Publishing to NPM
3:37
Matt Pocock
Рет қаралды 77 М.
How Create and Publish NPM Packages
17:06
James Q Quick
Рет қаралды 21 М.
How GitHub Actions 10x my productivity
8:18
Beyond Fireship
Рет қаралды 455 М.
GitHub Actions - Upload artifacts with GitHub workflow
7:51
InterviewPro
Рет қаралды 861