From b69ea68f048648e217739f627fdaec9a2d7c9bb1 Mon Sep 17 00:00:00 2001 From: Arthur Date: Mon, 19 Feb 2024 17:24:50 -0800 Subject: [PATCH] fix: workflows for yarn4 & node.js 20(#69) --- .github/workflows/create-index-algolia.yaml | 20 +++++++++----------- .github/workflows/update-adv-params.yaml | 10 ++++++---- .github/workflows/update-cloud-list.yaml | 10 ++++++---- 3 files changed, 21 insertions(+), 19 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: diff --git a/.github/workflows/update-adv-params.yaml b/.github/workflows/update-adv-params.yaml index 665328f3..a1523770 100644 --- a/.github/workflows/update-adv-params.yaml +++ b/.github/workflows/update-adv-params.yaml @@ -13,16 +13,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Enable Corepack + run: corepack enable - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 cache: 'yarn' - - name: Install project dependencies - run: yarn + - name: Install dependencies + run: yarn install --immutable - name: Parse service file run: make service-type-config-${{ inputs.service-name }} - name: Create pull request - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v6 with: commit-message: (${{ inputs.service-name }}) Update advanced parameters committer: GitHub diff --git a/.github/workflows/update-cloud-list.yaml b/.github/workflows/update-cloud-list.yaml index 5ba4a754..35deffef 100644 --- a/.github/workflows/update-cloud-list.yaml +++ b/.github/workflows/update-cloud-list.yaml @@ -11,16 +11,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Enable Corepack + run: corepack enable - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 cache: 'yarn' - - name: Install project dependencies - run: yarn + - name: Install dependencies + run: yarn install --immutable - name: Update available cloud list run: make cloud-list - name: Create pull request - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v6 with: commit-message: Cloud - Update available list committer: GitHub