Skip to content
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

feat: release pipeline #3

Merged
merged 1 commit into from
Jun 14, 2024
Merged

feat: release pipeline #3

merged 1 commit into from
Jun 14, 2024

Conversation

berendsliedrecht
Copy link
Member

Signed-off-by: Berend Sliedrecht [email protected]

Signed-off-by: Berend Sliedrecht <[email protected]>
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN

if [ ${{ inputs.release-type }} == 'alpha' ]; then
pnpm release --preRelease=alpha
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we also need to provide the release type here? E.g. if we're on 1.0.0 now, if we do alpha release should it be 1.0.1-alpha.0, 1.1.0-alpha.0, or 2.0.0-alpha.0?

@@ -0,0 +1,8 @@
{
"git": {
"commitMessage": "chore: release v${version}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it makes a commit on release, we should also push that commit. But I don't see support for that in the current CI setup.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if we enable branch protection it won't be possible anymore. So we either need to take the approach of not commiting when we make a release (as we do in more libraries, by not looking at package.json for the next version), or we need to disable brancn protectino and allow pushing to main, or we need to make a PR first to increase the version, and based on that trigger a release.

I'm fine with a simple solution for now

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

"version": "0.0.0",
"main": "build/index.js",
"author": "Animo Solutions <[email protected]> (https://animo.id)",
"author": "Animo Solutions <[email protected]> (https://www.animo.id)",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woot. https://www.animo.id doesn't seem to work. I'll look into into it, but why not just https://animo.id?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol thats weird, we are not on the world wide web!!!!

https://animo.id works as well, I prefer the looks of www haha.

@berendsliedrecht berendsliedrecht merged commit 782c67e into main Jun 14, 2024
2 checks passed
@berendsliedrecht berendsliedrecht deleted the release-ci branch June 14, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants