-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adiciona automação de Release para o Octopost #272
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aalmeida00
requested changes
Dec 15, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pega a descrição do PR e cria um readme pra explicar os passos pra fazer build/release, nao sei se ficou claro.
aalmeida00
approved these changes
Dec 15, 2023
Alecell
approved these changes
Dec 15, 2023
PiluVitu
pushed a commit
that referenced
this pull request
Jan 1, 2024
* chore: add release pipeline * chore: add release pipeline (#1) * chore: update package-json script * chore: update changeset * chore: enter pre-release mode * chore: update main pipeline to frozen lockfile * chore: update package json to remove electron builder * chore: improve main pipeline to use pnpm cache * chore: update npmrc to auto install peers * docs: update CONTRIUTING.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #271
Releases automatizadas com o Changesets
O changeset é uma biblioteca de geração de release automatizada através de um arquivo de .md dentro da pasta
.changeset
.O projeto está configurado para gerar releases alpha a partir do
0.1.0
, então a próxima versão será0.1.1-alpha-1
.O workflow do changeset
pnpm changeset
. O comando de changeset vai perguntar se a release é uma MAJOR, MINOR ou PATCH, e gerar um arquivo .md que pode ser editado para documentar as alterações da pull request.[BUMP] Lançar uma release para o octopost!
será aberta atualizando o package.version de todos os projetos para os seus respectivos valores seguindo o versionamento semântico.[BUMP]
for mergeada, todos os pacotes comprivate: false
no package.json serão automaticamente publicados no npm no escopo@octopost
.Release lançada
Quando a release for lançada, teremos uma aba exatamente assim com o snapshot do código daquela versão e o versionamento semântico especifico.
Isso será muito útil depois para buildar o projeto em electron e adicionar o .exe nos assets do github, além de parear a versão do module-manager para garantir a compatibilidade do projeto na versão X com os plugins usando o manager na versão X.
Checklist
Atualizei a pipeline
main
para uma melhor estratégia de cache que eu acabei vendo enquanto estava procurando sobre a pipeline do changesets.Também documentei melhor as funcionalidades do .npmrc e deixei o link da documentação, pois o pnpm não é tão conhecido pela galera.