Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [master]
branches: [search-v19]
pull_request:
branches: [master]
branches: [search-v19]

# This workflow contains a single job called "npm_audit"
jobs:
Expand All @@ -25,12 +25,6 @@ jobs:
- name: Install Monorepo Deps
run: npm ci --ignore-scripts

- name: Install Lerna
run: npm i -g lerna@5.1.5 --ignore-scripts

- name: Bootstrap Monorepo
run: lerna bootstrap --ignore-scripts

- name: Run Test Cases
run: npx lerna run test

Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,5 @@ jobs:
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts

- name: Install Lerna
run: npm i -g lerna@5.1.5 --ignore-scripts

- name: Bootstrap Monorepo
run: lerna bootstrap --ignore-scripts

- name: Run test
run: lerna run test
run: npx lerna run test
25 changes: 7 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@ name: Release [Manual]
on: workflow_dispatch
permissions:
contents: write
id-token: write
jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# fetch-depth is necessary to get all tags
# otherwise lerna can't detect the changes and will end up bumping the versions for all packages
fetch-depth: 0
token: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
always-auth: false # important for trusted publishing
- name: Configure CI Git User
run: |
git config --global user.name $CONFIG_USERNAME
Expand All @@ -27,21 +30,9 @@ jobs:
GITHUB_PAT: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
CONFIG_USERNAME: ${{ vars.RELEASE_COMMIT_USERNAME }}
CONFIG_EMAIL: ${{ vars.RELEASE_COMMIT_EMAIL }}
- name: Authenticate with Registry
run: |
echo "@${NPM_USERNAME}:registry=https://registry.npmjs.org/" > .npmrc
echo "registry=https://registry.npmjs.org/" >> .npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_USERNAME: ${{ vars.NPM_USERNAME }}

- name: Bootstrap
- name: Install Dependencies
run: |
npm ci --ignore-scripts
npm i -g lerna@5.1.5 --ignore-scripts
lerna bootstrap --ignore-scripts
- name: Test
run: npx lerna run test
- name: Stash Changes
Expand All @@ -52,6 +43,4 @@ jobs:
- name: Publish to NPM 🚀
# To always compare changes from registry
# using `from-package` compares version in local package.json with registry and publish it if required.
run: npx lerna publish from-package --yes
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx lerna publish from-package --yes
24 changes: 24 additions & 0 deletions build-link-search.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
!/bin/bash

Copilot AI Feb 10, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script shebang is missing the leading # (!/bin/bash), which will prevent the script from running when executed directly (e.g., ./build-link-search.sh). Update it to a valid shebang (e.g., #!/usr/bin/env bash or #!/bin/bash).

Suggested change
!/bin/bash
#!/usr/bin/env bash

Copilot uses AI. Check for mistakes.

# Build and Link Search Library Script
# This script builds the search library and links it to the sandbox

set -e # Exit on error

echo "Building search library (assets included automatically)..."
cd packages/search
npx ng build search-lib

echo "Creating global npm link..."
cd projects/search-lib/dist
npm link

echo "Linking to sandbox..."
cd ../../../../sandbox/search-client-example
npm link @sourceloop/search-client

echo "✅ Done! Search library built and linked successfully."
echo ""
echo "To start the sandbox, run:"
echo " cd sandbox/search-client-example"
echo " npm start"
35 changes: 13 additions & 22 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
{
"packages": [
"packages/search/projects/search-lib",
"packages/search/projects/search-element"
],
"packages": [
"packages/search/projects/search-lib",
"packages/search/projects/search-element"
],
"command": {
"bootstrap": {
"concurrency": 4,
"ignore": [
"@sourceloop/chat-notif-example_ui",
"@sourceloop/search-client-example",
"@sourceloop/payment-example-frontend",
"@sourceloop/user-onboarding-example",
"@sourceloop/chat-notif-example-ui-socket",
"@sourceloop/oauth-example-ui",
"@sourceloop/ai-assistant-example"
]
},
"version": {
"conventionalCommits": true,
"message": "chore(release): publish"
},
"publish": {
"conventionalCommits": true,
"message": "chore: publish release",
"allowBranch": "search-v19",
Comment thread
yeshamavani marked this conversation as resolved.
"noPrivate": true,
"graphType": "all"
},
"run": {
"concurrency": 3,
"ignore": [
Expand All @@ -38,10 +33,6 @@
"yes": true
}
},
"ignoreChanges": [
"**/__fixtures__/**",
"**/__tests__/**",
"**/*.md"
],
"ignoreChanges": ["**/__fixtures__/**", "**/__tests__/**", "**/*.md"],
"version": "independent"
}
}
Loading
Loading