Skip to content

[example] Fix JS version of new context example (#1317) #204

[example] Fix JS version of new context example (#1317)

[example] Fix JS version of new context example (#1317) #204

name: Build And Publish Search Index
on:
push:
branches:
- main
jobs:
build-publish-search-index:
runs-on: macos-latest
timeout-minutes: 10
steps:
- uses: google/wireit@setup-github-actions-caching/v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache-dependency-path: '**/package-lock.json'
- run: npm ci
- name: Publish algolia search index
env:
ALGOLIA_WRITE_KEY: ${{ secrets.LIT_DEV_ALGOLIA_WRITE_KEY }}
run: npm run publish-search-index