Automate your GitHub Actions Releases (with Semantic Release)!

Поділитися
Вставка
  • Опубліковано 7 жов 2024
  • In this final Episode, I show you how you can use semantic-release to easily automate your GitHub Action releases!
    This is part of my series on how to create and release GitHub Actions.
    The first episode on how to create GitHub Actions is found here: • Create your first GitH...
    The second episode on how to (manually) release GitHub Actions is here:
    • Release your first Git...
    This is the repository used:
    github.com/dav...
    Here you can find semantic-release:
    semantic-relea...

КОМЕНТАРІ • 45

  • @miladganjali1440
    @miladganjali1440 Рік тому +4

    thanks for the slow and calmly explaining everything, I really like this video.

    • @davelosert
      @davelosert  Рік тому

      Thank you very much for the feedback, glad you enjoyed it!

  • @TheChefski
    @TheChefski Рік тому +3

    Thank you! Not much people are commenting here but I found it helpful and well explained. Hoping to see more videos in the future that I could learn from!

    • @davelosert
      @davelosert  Рік тому +3

      Thank you very much for the feedback! Happy that my content was helpful for you - and I am already working on more! :)

  • @aryankothari4634
    @aryankothari4634 3 місяці тому

    awesome video.
    i didnt know semantic release was a thing. I just integrated it into my project and versioning is so seamless now

  • @dantech2011
    @dantech2011 Рік тому +4

    Great work Dave! Keep making videos man! Your teaching style is really good and easy to follow. I'd even go as far as creating a full course. This information is really valuable and I appreciate you taking the time to put this together and publish it to UA-cam! Subbed!

    • @davelosert
      @davelosert  Рік тому +1

      Thank you very much for that feedback, really appreciate you took the time to let me know!! I will release more videos, soon!

  • @NinoMatos
    @NinoMatos Рік тому +1

    Quite nice video Dave :)
    Very well explained! Keep up with Github Action videos that really resembles real life scenarios! We need more of that :)

    • @davelosert
      @davelosert  Рік тому

      Thank you so much for the kind feedback! I'm already working on more! :)

  • @brandonwie4173
    @brandonwie4173 Рік тому

    Thanks Dave for the amazing post. I was setting up the semantic-release for the repo for work and got a lot of help from your video. 🎉 Subscribed!

    • @davelosert
      @davelosert  Рік тому

      Hey Brandon, super glad this was helpful to you! Thanks for the subscription, I will release some more videos pretty soon. :)

  • @Mr_aviation_shorts
    @Mr_aviation_shorts Рік тому

    holy shit, this is good stuff.. been looking for a good semantic workflow. thanks dave

  • @Satenc0
    @Satenc0 9 місяців тому

    This is very well explained, I am going to try to use this amazing tool with a java-maven project, I hope it is not too different to make it work, thanks :)

  • @abderazakamiar9599
    @abderazakamiar9599 3 місяці тому

    Thank you very much, well explained

  • @kaokakelvin6202
    @kaokakelvin6202 Рік тому

    really learnt alot from this

  • @programmertelo
    @programmertelo Рік тому

    Thanks Dave

  • @ignaciovela8065
    @ignaciovela8065 Рік тому

    Really good video! Thanks!

  • @RubenBaez-qz5xl
    @RubenBaez-qz5xl 6 місяців тому +1

    Hello great work! Can you share your vscode config/plugins? It looks amazing for a dev environment.

  • @elvissautet
    @elvissautet Рік тому

    The best, thank you for this

  • @draylegend
    @draylegend 10 місяців тому +1

    thank you very much! How to push to a protected Branch, e.g. main. I get all the time "can't push tags to protected branch". I don't even know where to start

    • @davelosert
      @davelosert  10 місяців тому

      Hey there,
      if the main branch is protected, you most likely will have to go through a pull request to make the changes. Or remove the branch protection from the repository settings, if this is a repository you own. Though I'd not recommend this for repositories which are used 'in production'.

  • @example2061
    @example2061 10 місяців тому

    thanks for video. I'm trying to do the same with release-it. It has 3 different plugins to bump a version, based on your preferences how you want to change it.

  • @hasibulhossain1993
    @hasibulhossain1993 Рік тому

    Thank you, keep it up.

  • @pranupranav6279
    @pranupranav6279 Рік тому +1

    Nice video. All the best for YouTubing👋

    • @davelosert
      @davelosert  Рік тому

      Thank you very much - glad you liked it!

    • @pranupranav6279
      @pranupranav6279 Рік тому

      Yes I am working on a react hook npm package. Have a look at it. Its in its basic version stage. Lot of stuffs to do.
      Package name: zop-hooks

  • @Filipmalek1
    @Filipmalek1 Рік тому

    Just as a disclaimer, in the test.yml file, where you're defining the action steps, we don't have to include the npm run build step as seen on line 11 as it will slow down the release making process by quite a lot.
    I wonder why it's there in the first place @Dave?
    Thinking out loud I would imagine it's there to make sure the project build succeeds before making a release. If that's the case its fair as we all have different setups but I would argue that project building and build validation isn't the responsibility of semantic-release package.

    • @davelosert
      @davelosert  Рік тому

      Hi,
      First of all: Thank you for the feedback!
      Actually, the `npm run build` step is required in this case, as our action.yml references the dist/index.js, and thus, the test `./uses`-step in the test will execute that file.
      If we'd leave it out, the test would potentially be conducted for an 'old' version of the repository as it would reference the `dist/index.js` from a previous build (e.g. in pull-requests, but also on main before the actual new dist/index.js is pushed). :)

  • @glinden
    @glinden Рік тому

    Great video

  • @vikrammulik202
    @vikrammulik202 Рік тому

    Nice video, can I refer that version number while pushing Docker image in artifactory

  • @mnrendra
    @mnrendra Рік тому

    Hi Dave thank you! But, how to sign a commit with semantic-release github actions?

  • @ryanzhang9841
    @ryanzhang9841 Рік тому +1

    How to update new version to package.json? it seams only change the dist files

    • @davelosert
      @davelosert  Рік тому

      You mean update the version field in the package.json?
      If so, you probably need the npm plugin (is included in semantic-release, docs can be found here: docs.github.com/en/enterprise-server@3.7/admin/configuration/configuring-github-connect/about-github-connect#data-transmitted-by-individual-features-of-github-connect).
      You would just need to make sure to set the option 'npmPublish' to false, as you most likely don't want to publish a GitHub Action to npm.

  • @renatosouza1k
    @renatosouza1k 10 місяців тому

    Not working for me. I make a fork your project and not work too. Nothing error but dont created a release version. Ah, i am using docker build to exec this command, this possible ? I am a test with steps 100% in cicd github actions and work.

  • @augustuscaeser8939
    @augustuscaeser8939 5 місяців тому

    toooooooooooo looooooonnnnngggggggg

  • @PrafulPatelcontact2praful
    @PrafulPatelcontact2praful Рік тому

    Really helpful

  • @PrafulPatelcontact2praful
    @PrafulPatelcontact2praful Рік тому

    can you prepare a complete lifecycle video of trunk based development using semantic-release

  • @RegalWK
    @RegalWK 3 місяці тому +1

    nice! and what about publishing to npm? and version in package.json? is it updated automatically?

    • @davelosert
      @davelosert  3 місяці тому +1

      Hi,
      this video is specifically about releasing GitHub Actions, which don't require publishing to NPM.
      However, with Semantic Release, what you are asking for is easily doable with the npm plugin: github.com/semantic-release/npm

    • @RegalWK
      @RegalWK 3 місяці тому

      @@davelosert thank you!

    • @RegalWK
      @RegalWK 3 місяці тому

      @@davelosert great library I was looking for something like that