-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(chore) Upgrade Yarn and switch to workspaces
- Loading branch information
1 parent
cef0d8a
commit 0ba2a4a
Showing
8 changed files
with
6,091 additions
and
9,380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
node-version: "18" | ||
|
||
- name: Cache dependencies | ||
id: cache | ||
|
@@ -62,7 +62,7 @@ jobs: | |
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
node-version: "18" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- name: Cache dependencies | ||
|
@@ -74,40 +74,22 @@ jobs: | |
|
||
- name: Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: yarn | ||
run: yarn install --immutable | ||
|
||
- name: Build | ||
run: yarn turbo build --color | ||
|
||
- name: Patch | ||
run: yarn lerna version patch --no-git-tag-version --no-push --yes | ||
|
||
- name: Version | ||
run: yarn lerna version "$(node -e "console.log(require('./lerna.json').version)")-pre.${{ github.run_number }}" --no-git-tag-version --yes | ||
run: yarn workspaces foreach --worktree --topological --exclude @openmrs/esm-home version "$(node -e "console.log(require('semver').inc(require('./package.json').version, 'patch'))")-pre.${{ github.run_number }}" | ||
|
||
- run: git config user.email "[email protected]" && git config user.name "OpenMRS CI" | ||
- 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 }} | ||
|
||
deploy_home_page: | ||
runs-on: ubuntu-latest | ||
|
||
needs: pre_release | ||
|
||
if: ${{ github.event_name == 'push' }} | ||
|
||
steps: | ||
- name: Trigger RefApp Build | ||
uses: fjogeleit/http-request-action@master | ||
with: | ||
url: https://ci.openmrs.org/rest/api/latest/queue/REFAPP-D3X | ||
method: "POST" | ||
customHeaders: '{ "Authorization": "Bearer ${{ secrets.BAMBOO_TOKEN }}" }' | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
|
||
|
@@ -120,7 +102,7 @@ jobs: | |
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
node-version: "18" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- name: Cache dependencies | ||
|
@@ -132,12 +114,27 @@ jobs: | |
|
||
- name: Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: npx lerna bootstrap | ||
run: yarn install --immutable | ||
|
||
- name: Build | ||
run: yarn turbo build --color | ||
|
||
- 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 }} | ||
|
||
deploy_home_page: | ||
runs-on: ubuntu-latest | ||
|
||
needs: pre_release | ||
|
||
if: ${{ github.event_name == 'push' }} | ||
|
||
steps: | ||
- name: Trigger RefApp Build | ||
uses: fjogeleit/http-request-action@master | ||
with: | ||
url: https://ci.openmrs.org/rest/api/latest/queue/REFAPP-D3X | ||
method: "POST" | ||
customHeaders: '{ "Authorization": "Bearer ${{ secrets.BAMBOO_TOKEN }}" }' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
nodeLinker: node-modules | ||
compressionLevel: mixed | ||
|
||
enableGlobalCache: false | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs | ||
spec: "@yarnpkg/plugin-interactive-tools" | ||
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs | ||
spec: "@yarnpkg/plugin-version" | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.3.cjs | ||
yarnPath: .yarn/releases/yarn-4.0.2.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.