From 4b6172009e58123816f7e185b86b7dacda60dad1 Mon Sep 17 00:00:00 2001 From: ArthurFlageul Date: Mon, 19 Feb 2024 14:31:33 -0800 Subject: [PATCH] fix: add corepack and skip yarn install attempt --- .github/workflows/create-index-algolia.yaml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/create-index-algolia.yaml b/.github/workflows/create-index-algolia.yaml index 0edbb7ae..6b622b65 100644 --- a/.github/workflows/create-index-algolia.yaml +++ b/.github/workflows/create-index-algolia.yaml @@ -5,27 +5,25 @@ name: Update global Aiven index on: schedule: - cron: '0 6 * * 2' # Runs at 06:00 UTC every Tuesday - workflow_dispatch: # Allows manual triggering of the workflow + workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v2 - + - uses: actions/checkout@v4 + - name: Enable Corepack + run: corepack enable - name: Set up Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: '18' - - - name: Install Node.js dependencies - run: yarn - + node-version: 20 + cache: 'yarn' + - name: Install dependencies + run: yarn install --immutable - name: Build Docusaurus site run: yarn build - - name: Index docs output run: node scripts/create_index_algolia.js env: