Skip to content

Commit

Permalink
(chore) Switch from lerna to yarn for publishing (#1718)
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Mar 7, 2024
1 parent 6200a71 commit d5ef89c
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 1,857 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

- name: Build
run: yarn turbo build --color --concurrency=5
Expand All @@ -93,7 +93,7 @@ jobs:
- run: git add . && git commit -m "Prerelease version" --no-verify

- name: Pre-release
run: yarn run ci:prepublish
run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn run ci:prepublish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

Expand Down Expand Up @@ -157,6 +157,6 @@ jobs:
run: yarn turbo build --color --concurrency=5

- name: Publish
run: yarn run ci:publish
run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn run ci:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ In addition to these widgets, two other microfrontends exist that encapsulate cr

Check out the developer documentation [here](http://o3-dev.docs.openmrs.org).

This monorepo uses [yarn](https://yarnpkg.com) and [lerna](https://github.com/lerna/lerna).
This monorepo uses [yarn](https://yarnpkg.com).

To install the dependencies, run:

```bash
yarn
```
Expand Down
2 changes: 1 addition & 1 deletion e2e/specs/program-enrollment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test('Add and edit a program enrollment', async ({ page, api }) => {
await test.step('And I edit the program enrollment', async () => {
await programsPage.page.locator('#enrollmentDateInput').clear();
await programsPage.page.locator('#enrollmentDateInput').fill('03/07/2023');
await programsPage.page.locator('#completionDateInput').clear()
await programsPage.page.locator('#completionDateInput').clear();
await programsPage.page.locator('#completionDateInput').fill('04/07/2023');
await programsPage.page.locator('#completionDateInput').press('Tab');
await programsPage.page.locator('#location').selectOption('1ce1b7d4-c865-4178-82b0-5932e51503d6');
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "@openmrs/esm-patient-chart",
"private": true,
"version": "7.0.1",
"workspaces": [
"packages/*"
],
"scripts": {
"start": "openmrs develop --sources packages/esm-patient-chart-app/",
"ci:publish": "lerna publish from-package --yes",
"ci:prepublish": "lerna publish from-package --no-git-reset --yes --dist-tag next",
"ci:publish": "yarn workspaces foreach --all --topological npm publish --access public --tag latest",
"ci:prepublish": "yarn workspaces foreach --all --topological npm publish --access public --tag next",
"ci:bump-form-engine-lib": "yarn up @openmrs/openmrs-form-engine-lib@next",
"release": "lerna version --no-git-tag-version",
"release": "yarn workspaces foreach --all --topological version",
"verify": "turbo lint typescript test --color --concurrency=5",
"prettier": "prettier --config prettier.config.js --write \"packages/**/*.{ts,tsx,css,scss}\" \"e2e/**/*.ts\" --list-different",
"postinstall": "husky install",
Expand Down Expand Up @@ -51,7 +52,6 @@
"jest": "^29.7.0",
"jest-cli": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lerna": "^7.3.0",
"lint-staged": "^14.0.1",
"lodash": "^4.17.21",
"openmrs": "next",
Expand Down

0 comments on commit d5ef89c

Please sign in to comment.