Automate your GitHub Actions Releases (with Semantic Release)!

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 49

  • @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 5 місяців тому

    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 11 місяців тому

    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 :)

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

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

    Thank you very much, well explained

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

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

  • @cornflakeboy5915
    @cornflakeboy5915 5 хвилин тому

    good stuff

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

    really learnt alot from this

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

    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.

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

    Really good video! Thanks!

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

    The best, thank you for this

  • @draylegend
    @draylegend Рік тому +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  Рік тому

      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'.

  • @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). :)

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

    Thanks Dave

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

    Thank you, keep it up.

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

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

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

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

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

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

    Great video

  • @christophercaldwell6641
    @christophercaldwell6641 Місяць тому

    It seems to automatically bundle and zip the source at the time of release, is there a way to get it to zip only what you want? Say you have a build process that outputs a bundled file, can you include only that output as the release assets?

    • @davelosert
      @davelosert  Місяць тому

      That is the default behavior of a GitHub release and, as such, the semantic-release/github plugin.
      You can configure what get's included in the semantic-release/github config as described in the plugin documentation here: github.com/semantic-release/github?tab=readme-ov-file#usage

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

    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 7 місяців тому

    toooooooooooo looooooonnnnngggggggg