Skip to content

chore: add changeset for PR #940 (#941) #327

chore: add changeset for PR #940 (#941)

chore: add changeset for PR #940 (#941) #327

name: Algolia Search Indexing
on:
push:
branches:
- v2
workflow_dispatch:
env:
ALGOLIA_APPLICATION_ID: 7V00GBK8V8
ALGOLIA_INDEX: tonic-ui-v2
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install yarn
run: npm install -g yarn
- name: Install and build
run: |
yarn up
yarn install
yarn build
- name: Algolia search indexing
env:
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}
run: |
cd packages/react-docs; ../../node_modules/.bin/babel-node scripts/algolia-search-indexing.js