Fully Automated npm publish using GitHub Actions and Semantic Release

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

Bruno Antunes

Bruno Antunes

Күн бұрын

Пікірлер: 70
@aboubacardiallo9117
@aboubacardiallo9117 3 ай бұрын
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 🤗🤗
@khandoor7228
@khandoor7228 3 жыл бұрын
Excellent Bruno, life saver!!
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Thank you 😍😍
@macieksitkowski
@macieksitkowski 2 жыл бұрын
Hey Bruno, thank you very much, I learned a ton from your video 🙏
@BrunoAntunesPT
@BrunoAntunesPT 2 жыл бұрын
Very happy to read that 😍 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 😀
@oleksandr5128
@oleksandr5128 3 жыл бұрын
That is a great topic, thank you a lot!
@BrunoAntunesPT
@BrunoAntunesPT 3 жыл бұрын
Thank you Oleksandr 😀
@devasanishivani3197
@devasanishivani3197 Жыл бұрын
Helpful. Thanks for all the references links
@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
@mkdierz
@mkdierz Жыл бұрын
thanks much love ❤
@shivomsrivastava6540
@shivomsrivastava6540 Жыл бұрын
Thanks Bruno
@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.👍
@Senshiii99
@Senshiii99 2 жыл бұрын
SIMPLY AMAZING !! ❤
@BrunoAntunesPT
@BrunoAntunesPT 2 жыл бұрын
Thank you 😍
@sealuke2724
@sealuke2724 2 жыл бұрын
awesome content!! bro
@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?
@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 😂
@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?
@subhranshudas8862
@subhranshudas8862 2 жыл бұрын
Great explanation. Can you please share about how to do the same thing for mono-repos with independent publishable modules?
@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 ?
@leonilima2611
@leonilima2611 2 жыл бұрын
Me ajudou muito. Abraços direto do Brasil!
@mapalchemy7831
@mapalchemy7831 2 жыл бұрын
Thanks Bruno, add this in package.json to avoid payment error: "publishConfig": { "access": "public" },
@GabrielRodriquesGonzaga
@GabrielRodriquesGonzaga 2 жыл бұрын
Nice one :)
@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
@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 😔😔
@卡卡西-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.
@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.
@himanshukushwah5211
@himanshukushwah5211 2 жыл бұрын
Hey bruno having packages depreciated errors, please help
@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 😀😀
@JeffandFantom
@JeffandFantom Жыл бұрын
How about make about GitLab?
@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 😊
@Stefan-xm9qb
@Stefan-xm9qb Жыл бұрын
Nice jaw line
@kavishkasandaruwan3637
@kavishkasandaruwan3637 2 жыл бұрын
can i do it without coding
@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 ❤️❤️
How GitHub Actions 10x my productivity
8:18
Beyond Fireship
Рет қаралды 426 М.
Adding Tags, Versioning, and Releases in Github | Git & Source Control #13
13:48
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 30 МЛН
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 25 МЛН
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 34 МЛН
CI/CD for Android Projects using Github Actions | Pipelines + Workflows
24:43
Publish to NPM with GitHub Actions
17:13
Jamie Barton
Рет қаралды 1,2 М.
Using semantic-release with GitHub Actions
15:53
Zeke Sikelianos
Рет қаралды 15 М.
Automate your GitHub Actions Releases (with Semantic Release)!
23:39
Dave's Dev Channel
Рет қаралды 33 М.
How to Release Code With Github
7:47
Kahan Data Solutions
Рет қаралды 93 М.
How to Manage Releases with Semantic Versioning and Git Tags
43:14
🤖 automating npm publish with github actions
11:23
Brad Garropy
Рет қаралды 12 М.
iPhone or Samsung?
0:28
Kan Andrey
Рет қаралды 2,3 МЛН
Is this Samsung's change over time #shorts
0:13
Si pamerR
Рет қаралды 1,4 МЛН
Luminous screen protectors 🔥 #iphone ##screenprotector #android
0:19