🤖 automating npm publish with github actions

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • Utilize GitHub Actions to automatically publish your package to npm.
    cli.github.com
    github.com/fea...
    github.com/bra...
    bradgarropy.co...
    ------------------------------------------------------------------
    🏠 bradgarropy.com
    💻 github.com/bra...
    🐦 / bradgarropy
    📷 / bradgarropy
    📧 bradgarropy@gmail.com

ความคิดเห็น • 26

  • @rajuc6438
    @rajuc6438 ปีที่แล้ว +1

    Thank you for your thorough explanation. It helped a lot

  • @1235niki
    @1235niki 2 ปีที่แล้ว +4

    Clean and simple, thanks for this tutorial Brad.

  • @wacnss
    @wacnss 2 ปีที่แล้ว +1

    You've got my like and subscribe.
    Keep it up.

  • @kishor-jena
    @kishor-jena 2 ปีที่แล้ว +1

    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.

  • @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?

  • @koigxiritb7ttgyuv
    @koigxiritb7ttgyuv 2 ปีที่แล้ว +1

    very good tutorial, thanks

  • @nsharma4981
    @nsharma4981 3 ปีที่แล้ว +1

    This was really helpful and to the point, exactly what I was looking for! Thanks a bunch :)

  • @Marcus-ty3pi
    @Marcus-ty3pi 3 ปีที่แล้ว +1

    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.
      th-cam.com/video/jEi22V1A2HM/w-d-xo.html

    • @Marcus-ty3pi
      @Marcus-ty3pi 3 ปีที่แล้ว +1

      @@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!

  • @dalefrench
    @dalefrench 3 ปีที่แล้ว +2

    Thanks for the help! Would be cool to see how to increment the version number automatically too 🤔

    • @bradgarropy
      @bradgarropy  3 ปีที่แล้ว +2

      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!

  • @lucassilverio720
    @lucassilverio720 3 ปีที่แล้ว +1

    thanks man, i do to angular libraries and works! amazing!

  • @mathewsmachadoamorim5557
    @mathewsmachadoamorim5557 3 ปีที่แล้ว +1

    great video man, thanks for it

  • @jacobshuman1650
    @jacobshuman1650 4 ปีที่แล้ว +1

    Really straightforward, thanks for the help!

    • @bradgarropy
      @bradgarropy  4 ปีที่แล้ว +5

      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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      Totally, thanks for the feedback!

  • @deeppatel2819
    @deeppatel2819 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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💯💯👍

  • @salik619
    @salik619 3 ปีที่แล้ว +1

    Amazing. Thank you !

  • @rdandnayak
    @rdandnayak 3 ปีที่แล้ว

    Thanks. helped a lot.

  • @ziyadkader6767
    @ziyadkader6767 4 ปีที่แล้ว +1

    great video !