Skip to content

Commit dc21051

Browse files
authored
build before algolia sync (#17378)
* build project before syncing indicies * do the same for dry-run
1 parent 1c28c58 commit dc21051

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/dry-run-sync-algolia-search-indices.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ jobs:
2121
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2222
restore-keys: |
2323
${{ runner.os }}-node-
24-
- name: npm ci
24+
- name: Install dependencies
2525
run: npm ci
26+
- name: Run build scripts
27+
run: npm run build
2628
- name: (Dry run) sync indices
2729
env:
2830
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}

.github/workflows/sync-algolia-search-indices.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ jobs:
2424
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2525
restore-keys: |
2626
${{ runner.os }}-node-
27-
- name: npm ci
27+
- name: Install dependencies
2828
run: npm ci
29+
- name: Run build scripts
30+
run: npm run build
2931
- name: sync indices
3032
env:
3133
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}

0 commit comments

Comments
 (0)