-
Notifications
You must be signed in to change notification settings - Fork 6
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: new release process #85
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -0,0 +1,54 @@ | |||
name: publish-release | |||
|
|||
on: workflow_dispatch |
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.
This allows us to manually trigger the "publish-release" workflow. Now,
- "publish-pre-release" will run on every merge to main, creating x.y.z-rc.N, x.y.z-rc.M, etc.
- "publish-release" will be manually triggered when we are ready to release.
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.
Read more about it here: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
@@ -1,5 +1,6 @@ | |||
{ | |||
"name": "react-16", | |||
"private": true, |
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 never want to publish the React apps, so setting to private.
@@ -40,6 +40,7 @@ | |||
"@typescript-eslint/parser": "^5.43.0", | |||
"babel-loader": "^8.3.0", | |||
"commitizen": "^4.2.5", | |||
"conventional-changelog-angular": "^6.0.0", |
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.
Was getting an error before. This needed to be set at the top-level.
@@ -11,7 +11,8 @@ | |||
"build": "parcel build" | |||
}, | |||
"publishConfig": { | |||
"access": "public" | |||
"access": "public", | |||
"group": "@propeldata/ui-kit" |
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.
All our packages will be considered part of a group named "@propeldata/ui-kit". They will all share the same version (Lerna-style). The resulting git tags will look like "@propeldata/ui-kit@x.y.z" and "@propeldata/ui-kit@x.y.z-rc.N".
"peerDependencies": { | ||
"conventional-changelog-angular": "^6.0.0" | ||
}, |
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.
Moved this to a peer dependency, since it needs to be installed at the top-level.
@@ -8,13 +8,19 @@ import { execSync } from 'child_process' | |||
async function main(): Promise<void> { | |||
try { | |||
const autoCommitMessage = process.env.COMMIT_MESSAGE | |||
const dryRun = process.env.DRY_RUN === 'true' |
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.
Needed this for testing.
With this change, the next version we will publish is 0.31.0. Merging this to main should create 0.31.0-rc.0.
@felipecadavid the actual release process will be slightly different than what we discussed yesterday, but I'll catch you up on it.