Fully Automated npm publish using GitHub Actions and Semantic Release

  Рет қаралды 27,658

Bruno Antunes

Bruno Antunes

Күн бұрын

Пікірлер: 70
@cmanship
@cmanship 5 ай бұрын
You answered all my questions about versioning with semantic release. That’s is an amazing content and I’m going to subscribe right now because I don’t want to miss any content from you 🥰
@AlekzyCrixZBlogout
@AlekzyCrixZBlogout 3 жыл бұрын
This is gold man, keep this on! New sub
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Thank you very much my friend 😊
@Wickaruz
@Wickaruz Жыл бұрын
Thanks Bruno with this tutorial I could integrate semantic-release to my vuejs web project! Big thanks!
@mc-ty4br
@mc-ty4br 3 жыл бұрын
EXACTLY what I was looking for! I followed every step even when I knew that (for example) NPM_TOKEN was missing and it was gonna fail 😅 Thank you :)
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Awesome mate 😍😍😍 Thank you for your positive vibes 🤗🤗
@fauzi5848
@fauzi5848 3 жыл бұрын
rich topics, very well explained and a bit funny too 😁 keep up the good work Bruno 👍
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
I'm soo glad you enjoyed it 😍 thank you for your words 🤗🤗
@macieksitkowski
@macieksitkowski 3 жыл бұрын
Hey Bruno, thank you very much, I learned a ton from your video 🙏
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Very happy to read that 😍 thank you 🙂
@khandoor7228
@khandoor7228 3 жыл бұрын
Excellent Bruno, life saver!!
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Thank you 😍😍
@web_dev_host
@web_dev_host 2 жыл бұрын
Wonderful video! Learned so many things
@BrunoAntunesPT
@BrunoAntunesPT 2 жыл бұрын
I'm soo happy to know that ❤️❤️
@ruijadom
@ruijadom 3 жыл бұрын
Tens mesmo jeito para ensinar! os teus videos estão top! parabéns!
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Muito obrigado Rui 😀
@devasanishivani3197
@devasanishivani3197 2 жыл бұрын
Helpful. Thanks for all the references links
@oleksandr5128
@oleksandr5128 3 жыл бұрын
That is a great topic, thank you a lot!
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Thank you Oleksandr 😀
@infoapp7725
@infoapp7725 3 жыл бұрын
Amazing Bruno!! it works for me, thanks so much Do you know if is possible to publish a pre-release package? like a beta or something previous to the final release? what should be the commands to do that? thank you
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Thank you 😍 Yes you will need a pre-releass branch for that, but answering directly to your question: yes, it's possible 😊 They have docs here explaining that process semantic-release.gitbook.io/semantic-release/usage/workflow-configuration#pre-release-branches
@hattori-kunplays1204
@hattori-kunplays1204 2 жыл бұрын
24:15 did you mean squash and merge will lose the nice commit messages not the Create a merge commit?
@mkdierz
@mkdierz Жыл бұрын
thanks much love ❤
@feossandon
@feossandon 2 жыл бұрын
Hello Bruno, thanks for the tutorial. I have troubles with NPM_TOKEN during the CI actions process. ""Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token."" but my npm account does not have 2FA enabled, and my generated access token is type ""Automation"". any advice about this problem?
@raffaelloringue
@raffaelloringue 2 жыл бұрын
thanks for the vid. is it possible to have inside the action more than 1 if. ? For example 1 for main branch and another for dev branch? another question.. what about pushing from visualcode ?
@shivomsrivastava6540
@shivomsrivastava6540 2 жыл бұрын
Thanks Bruno
@subhranshudas8862
@subhranshudas8862 2 жыл бұрын
Great explanation. Can you please share about how to do the same thing for mono-repos with independent publishable modules?
@himanshukushwah5211
@himanshukushwah5211 2 жыл бұрын
Hey bruno having packages depreciated errors, please help
@adi_sekar
@adi_sekar 2 жыл бұрын
Great video Bruno. I didn't get the last part on why publish was skipped, but you did see the new version 1.1.0 updated in npm? How did that work?
@gowsalyar8352
@gowsalyar8352 Жыл бұрын
The publish was skipped for his feature branch, bcoz he set it up the publish steps in yml file to run only for the main branch. So that only the publish steps skipped for his feature branch. And then once the changes merged to main the publish step ran and the npm version updated in npm screen. Hope it's helps to understand.👍
@leonilima2611
@leonilima2611 2 жыл бұрын
Me ajudou muito. Abraços direto do Brasil!
@卡卡西-p7i
@卡卡西-p7i 2 жыл бұрын
please let me know if you still can publish success. I tried the latest version of seamantic-release and same of verion as your repo, both meet same 403 error.
@Senshiii99
@Senshiii99 2 жыл бұрын
SIMPLY AMAZING !! ❤
@BrunoAntunesPT
@BrunoAntunesPT 2 жыл бұрын
Thank you 😍
@TalesMarinho
@TalesMarinho 2 жыл бұрын
Can you record a video with the necessary changes to publish a named package on github registry from an organization? It's bein painful here
@sealuke2724
@sealuke2724 2 жыл бұрын
awesome content!! bro
@eduardocarvalho4232
@eduardocarvalho4232 3 жыл бұрын
Portuguese 🤟🏻 Awesome work. Tens discord ?
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Muito obrigado Eduardo 😍 Por acaso nao tenho discord... mas 'es a terceira pessoa esta semana a perguntar isso 😊 Que vantagens ves em usar discord? Desculpa a pergunta completamente noob da minha parte 🤣🤣
@eduardocarvalho4232
@eduardocarvalho4232 3 жыл бұрын
​@@BrunoAntunesPT O discord é uma app para mobile/desktop/web que te permite criar um "servidor" onde podes convidar amigos, video calls, chamadas de grupo, partilha de ecra, tudo no mesmo servidor sem custo nenhum. Faz imensa falta na comunidade portuguesa, já que procuramos sempre contéudo na comunidade Inglesa/Brasileira e assim podiamos criar uma união e partilhar-mos conteúdo em Português com outros Portugueses 😂
@wacnss
@wacnss 2 жыл бұрын
Hello, it's a nice tutorial. Everything is working fine, but once it reaches the release job it falls into a permision error how do I solve it? NOTE: I've even used my personal access token which gives all the permisions it needs.
@mapalchemy7831
@mapalchemy7831 2 жыл бұрын
Thanks Bruno, add this in package.json to avoid payment error: "publishConfig": { "access": "public" },
@JeffandFantom
@JeffandFantom Жыл бұрын
How about make about GitLab?
@kavishkasandaruwan3637
@kavishkasandaruwan3637 2 жыл бұрын
can i do it without coding
@MarcosRCordeiro10
@MarcosRCordeiro10 3 жыл бұрын
Hello Bruno. Is there a another way do write routes inside NextJS? I dont like the system namefolders routes I want something like "router" from CRA
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Uhmm... You can but you need to create a custom server 😔😔
@wilsonbenavides1520
@wilsonbenavides1520 3 жыл бұрын
Hello, Bruno could I use this method to share common codes between 2 projects? I have 2 react apps that share many functions, selectors, ui components.
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Yes, you can! :) We share react components and helpers between multiple teams inside my company. We have a private npm registry so the code is not exposed outside our organization - this might be important (or not) depending on your company... We then use storybook both as development playground and documentation - storybook is a pleasure to work with :)
@wilsonbenavides1520
@wilsonbenavides1520 3 жыл бұрын
@@BrunoAntunesPT wow Bruno thanks a lot. I ve been struggling copying and pasting the codes within my projects. Do you have a video where you you talk more In detail about this topic?
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Yeah, copy pasting works for a while, but as soon as your projects start to grow, it becomes very painful very fast, especially if you have multiple teams with a dozen projects xD Well...that was basically my introduction for last weeks video and one of the reasons to make this 2 videos - kzbin.info/www/bejne/l4epkqaGjdCsiKc But if you have any question(s), feel free to ask, and I'll try to help :)
@wilsonbenavides1520
@wilsonbenavides1520 3 жыл бұрын
@@BrunoAntunesPT thanks. I got it.
@prakashacharya
@prakashacharya 3 жыл бұрын
AggregateError: SemanticReleaseError: The release branches are invalid in the `branches` configuration. I got this error I tried to find the documentation and added the configuration for release branches it does not work.
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Can you share your repository? Are you passing the branches like here : github.com/bmvantunes/youtube-2021-may-automatic-publish-npm-semantic-release-and-github-actions/blob/1c6d20cd4b92978e8ac40d44f704073fe5ddcfa9/package.json#L25
@prakashacharya
@prakashacharya 3 жыл бұрын
@@BrunoAntunesPT i passed the different branch name I fixed it. Thankyou so much. Appriciate your work.
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Awesome 😀😀
@leocaesar2
@leocaesar2 3 жыл бұрын
why is my package not appearing in my npm account
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
It can take quite a while because of cache 😊 As long as it says it was published on the terminal 😊
@GabrielRodriquesGonzaga
@GabrielRodriquesGonzaga 2 жыл бұрын
Nice one :)
@henryugochukwu8398
@henryugochukwu8398 3 жыл бұрын
Hi Bruno. Awesome work man. But I am having an issue when running the publish job. semantic-release seems to be having an issue during publishing. Please help npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! react-paga@0.0.0-development semantic-release: `semantic-release` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-paga@0.0.0-development semantic-release script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/runner/.npm/_logs/2021-07-26T01_54_40_871Z-debug.log
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Thank you 😊 can you copy more of the error? That bit alone doesn't help understand what happened 😊
@henryugochukwu8398
@henryugochukwu8398 3 жыл бұрын
@@BrunoAntunesPT Hi Bruno, thanks for the response. Apparently when I created my npmjs.com account I didn't verify my email address as a result I wasn't granted access to publish my package. But I have resolved it. Thanks
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
@@henryugochukwu8398 that's awesome to read 😍😍😍 I'm very happy you are now able to publish packages ❤️❤️
@Stefan-xm9qb
@Stefan-xm9qb Жыл бұрын
Nice jaw line
I was just passing by
00:10
Artem Ivashin
Рет қаралды 18 МЛН
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 6 МЛН
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 10 МЛН
Introducing ElevenLabs Conversational AI
1:58
ElevenLabs
Рет қаралды 57 М.
🤖 automating npm publish with github actions
11:23
Brad Garropy
Рет қаралды 12 М.
Using semantic-release with GitHub Actions
15:53
Zeke Sikelianos
Рет қаралды 15 М.
AUTOMATE YOUR PROJECT VERSIONING | PART 1
17:21
Code with Sahu
Рет қаралды 16 М.
Publish to NPM with GitHub Actions
17:13
Jamie Barton
Рет қаралды 2,2 М.
5 Ways to DevOps-ify your App - Github Actions Tutorial
12:12
Fireship
Рет қаралды 702 М.
I was just passing by
00:10
Artem Ivashin
Рет қаралды 18 МЛН