Skip to content

Commit 433c9fc

Browse files
feat(user-onboarding): convert into workspace
1 parent deda9dc commit 433c9fc

File tree

12 files changed

+20859
-7710
lines changed

12 files changed

+20859
-7710
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,14 @@ jobs:
2222
- run: node --version
2323
- run: npm --version
2424

25+
- name: Install Chrome
26+
uses: browser-actions/setup-chrome@v1
27+
2528
- name: Install Monorepo Deps
2629
run: npm ci --ignore-scripts
2730

28-
- name: Install Lerna
29-
run: npm i -g [email protected] --ignore-scripts
30-
31-
- name: Bootstrap Monorepo
32-
run: lerna bootstrap --ignore-scripts
33-
3431
- name: Run Test Cases
35-
run: npx lerna run test
32+
run: npm run test --workspaces --if-present
3633

3734
- name: Run Lint Checks
38-
run: npx lerna run lint
35+
run: npm run lint --workspaces --if-present

.github/workflows/pull_request.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,5 @@ jobs:
2323
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
2424
run: npm ci --ignore-scripts
2525

26-
- name: Install Lerna
27-
run: npm i -g [email protected] --ignore-scripts
28-
29-
- name: Bootstrap Monorepo
30-
run: lerna bootstrap --ignore-scripts
31-
3226
- name: Run test
33-
run: lerna run test
27+
run: npm run test --workspaces --if-present

.github/workflows/release.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ jobs:
88
Release:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
# fetch-depth is necessary to get all tags
1414
# otherwise lerna can't detect the changes and will end up bumping the versions for all packages
1515
fetch-depth: 0
1616
token: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
1717
- name: Setup Node
18-
uses: actions/setup-node@v3
18+
uses: actions/setup-node@v4
1919
with:
2020
node-version: '20.x'
2121
- name: Configure CI Git User
@@ -29,29 +29,23 @@ jobs:
2929
CONFIG_EMAIL: ${{ vars.RELEASE_COMMIT_EMAIL }}
3030
- name: Authenticate with Registry
3131
run: |
32-
echo "@${NPM_USERNAME}:registry=https://registry.npmjs.org/" > .npmrc
33-
echo "registry=https://registry.npmjs.org/" >> .npmrc
34-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
32+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
3533
npm whoami
3634
env:
3735
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3836
NPM_USERNAME: ${{ vars.NPM_USERNAME }}
3937

40-
- name: Bootstrap
38+
- name: Install Dependencies
4139
run: |
4240
npm ci --ignore-scripts
43-
npm i -g [email protected] --ignore-scripts
44-
lerna bootstrap --ignore-scripts
4541
- name: Test
46-
run: npx lerna run test
42+
run: npm run test --workspaces --if-present
4743
- name: Stash Changes
4844
run: git stash
4945
- name: Bump Versions
5046
# "HUSKY=0" disables pre-commit-msg check (Needed in order to allow lerna perform the release commit)
5147
run: HUSKY=0 npx lerna version --yes --ci --conventional-commits
5248
- name: Publish to NPM 🚀
53-
# To always compare changes from registry
54-
# using `from-package` compares version in local package.json with registry and publish it if required.
5549
run: npx lerna publish from-package --yes
5650
env:
57-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

lerna.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
{
22
"packages": [
3-
"packages/search/projects/search-lib",
4-
"packages/search/projects/search-element"
3+
"packages/user-onboarding/projects/user-onboarding-lib",
4+
"packages/user-onboarding/projects/user-onboarding-element"
55
],
66
"command": {
7-
"bootstrap": {
8-
"concurrency": 4,
9-
"ignore": [
10-
"@sourceloop/chat-notif-example_ui",
11-
"@sourceloop/search-client-example",
12-
"@sourceloop/payment-example-frontend",
13-
"@sourceloop/user-onboarding-example",
14-
"@sourceloop/chat-notif-example-ui-socket",
15-
"@sourceloop/oauth-example-ui",
16-
"@sourceloop/ai-assistant-example"
17-
]
18-
},
197
"version": {
208
"conventionalCommits": true,
219
"message": "chore(release): publish"

0 commit comments

Comments
 (0)