Skip to content

docs: display package versions in the installation page #346

docs: display package versions in the installation page

docs: display package versions in the installation page #346

name: Algolia Search Indexing
on:
push:
branches:
- v2
workflow_dispatch:
env:
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
ALGOLIA_INDEX: tonic-ui-v2
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# Fetch the entire Git history to access the latest tag release
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- 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