Skip to content

Commit

Permalink
(chore) Switch to yarn for versioning and publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Mar 5, 2024
1 parent 9853c65 commit 7a1e199
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 2,883 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --immutable

- 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 turbo run build --color --concurrency=5
- name: Version
run: yarn workspaces foreach --worktree --topological --exclude @openmrs/esm-admin-tools version "$(node -e "console.log(require('semver').inc(require('./package.json').version, 'patch'))")-pre.${{ github.run_number }}"

- name: Build
run: yarn turbo run build --color --concurrency=5

- run: git config user.email "[email protected]" && git config user.name "OpenMRS CI"
- run: git add . && git commit -m "Prerelease version" --no-verify

Expand Down
13 changes: 0 additions & 13 deletions lerna.json

This file was deleted.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"scripts": {
"start": "openmrs develop",
"start-all": "openmrs develop --sources 'packages/esm-*-app/'",
"ci:publish": "lerna publish from-package --yes",
"ci:prepublish": "lerna publish from-package --no-git-reset --yes --dist-tag next",
"release": "lerna version --no-git-tag-version",
"ci:publish": "yarn workspaces foreach --all --topological --exclude @openmrs/esm-admin-tools npm publish --access public --tag latest",
"ci:prepublish": "yarn workspaces foreach --all --topological --exclude @openmrs/esm-admin-tools npm publish --access public --tag next",
"release": "yarn workspaces foreach --all --topological version",
"verify": "turbo lint typescript test",
"prettier": "prettier --config prettier.config.js --write \"packages/**/*.{ts,tsx}\" \"e2e/**/*.ts\" --list-different",
"postinstall": "husky install",
Expand Down Expand Up @@ -51,7 +51,6 @@
"jest": "^29.7.0",
"jest-cli": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lerna": "^8.1.2",
"openmrs": "next",
"prettier": "^3.2.5",
"pretty-quick": "^4.0.0",
Expand Down
Loading

0 comments on commit 7a1e199

Please sign in to comment.