-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
Signed-off-by: Berend Sliedrecht <sliedrecht@berend.io>
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN | ||
|
||
if [ ${{ inputs.release-type }} == 'alpha' ]; then | ||
pnpm release --preRelease=alpha |
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.
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}" |
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.
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.
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.
We can probably give the CI push access. See https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
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.
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
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.
Good catch!
"version": "0.0.0", | ||
"main": "build/index.js", | ||
"author": "Animo Solutions <development@animo.id> (https://animo.id)", | ||
"author": "Animo Solutions <development@animo.id> (https://www.animo.id)", |
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.
Woot. https://www.animo.id doesn't seem to work. I'll look into into it, but why not just https://animo.id?
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.
lol thats weird, we are not on the world wide web!!!!
https://animo.id works as well, I prefer the looks of www
haha.
Signed-off-by: Berend Sliedrecht sliedrecht@berend.io