-
Notifications
You must be signed in to change notification settings - Fork 248
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
(chore) Switch from lerna to yarn for publishing #1718
Conversation
Size Change: -317 kB (-3%) Total Size: 10.7 MB
ℹ️ View Unchanged
|
@@ -84,7 +84,7 @@ jobs: | |||
server-token: ${{ env.TURBO_TOKEN }} | |||
|
|||
- name: Version | |||
run: yarn lerna version "$(node -e "console.log(require('semver').inc(require('./lerna.json').version, 'patch'))")-pre.${{ github.run_number }}" --no-git-tag-version --no-push --yes | |||
run: yarn workspaces foreach --worktree --topological version "$(node -e "console.log(require('semver').inc(require('./package.json').version, 'patch'))")-pre.${{ github.run_number }}" |
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 exclude the root app here, right?
ex:
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.
No, because we want to version the @openmrs/esm-patient-chart-app
package as well, right?
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.
@denniskigen The "root app" here is @openmrs/esm-patient-chart
, i.e., the workspace package.json itself.
That said, as long as this works, I don't think it's wrong (the difference is, at most, a couple of milliseconds of execution time). If I did it again, I probably wouldn't write the patient-management CI script the same way; it would be nice to have symmetry between the command run here and the command used in the version
script.
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.
Hmmm... there was a reason for the exclusion, it appears: https://github.com/openmrs/openmrs-esm-patient-chart/actions/runs/8189908003/job/22395772588
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.
I can push a PR to fix the exclusion.
If I did it again, I probably wouldn't write the patient-management CI script the same way; it would be nice to have symmetry between the command run here and the command used in the version script.
Should I change the command as well?
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.
So, actually, I think the pertinent place for the exclusion is in the ci:publish
and ci:prepublish
scripts in the package.json. It makes sense to add that here, I guess, for the same symmetry I was referring to.
Requirements
Summary
This PR switches this repo from using lerna for publishing releases and pre-releases to using Yarn. This just brings this repo in line with others like Core and Patient Management that use Yarn for publishing.
Screenshots
Related Issue
Other