From b991bda6ababd3877cc09b679f3cfe1904fafb22 Mon Sep 17 00:00:00 2001 From: Burhan Nasir Date: Thu, 16 Jan 2025 18:02:17 +0500 Subject: [PATCH] Update GH actions --- .github/workflows/build-and-tag.yml | 8 ++++++-- .github/workflows/build-docs.yml | 7 +++++-- .github/workflows/build-with-vendor-prefixed.yml | 7 +++++-- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-tag.yml b/.github/workflows/build-and-tag.yml index 63026eb80..d7db05480 100644 --- a/.github/workflows/build-and-tag.yml +++ b/.github/workflows/build-and-tag.yml @@ -1,4 +1,8 @@ name: Build and Tag + +env: + NODE_VERSION: "20" + on: push: branches: @@ -22,10 +26,10 @@ jobs: - name: composer install run: composer install - - name: install node v20 + - name: "install node v${{ env.NODE_VERSION }}" uses: actions/setup-node@v4 with: - node-version: 20 + node-version: ${{ env.NODE_VERSION }} - name: Build run: | diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 5d950dc41..8130bc810 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -1,5 +1,8 @@ name: Build Docs +env: + NODE_VERSION: "20" + on: push: branches: @@ -54,10 +57,10 @@ jobs: wp package install felipeelia/cli-command-docs:dev-trunk wp cli-command-docs elasticpress --custom-order=sync,activate-feature,deactivate-feature,list-features,get-algorithm-version,set-algorithm-version --remove=delete_transient_on_int,custom_get_transient,stop_on_failed_mapping,call_ep_cli_put_mapping,should_interrupt_sync,index_output,get-indexes,get-cluster-indexes,index,clear-index,get-indexing-status,get-last-cli-index,stop-indexing --custom-intro='The following WP-CLI commands are supported by ElasticPress:' > wp-content/plugins/elasticpress/docs/wp-cli.md - - name: Use Node.js 20 + - name: "install node v${{ env.NODE_VERSION }}" uses: actions/setup-node@v4 with: - node-version: '20' + node-version: ${{ env.NODE_VERSION }} - name: npm ci, and build docs run: | diff --git a/.github/workflows/build-with-vendor-prefixed.yml b/.github/workflows/build-with-vendor-prefixed.yml index f0ba05c87..7c6d20894 100644 --- a/.github/workflows/build-with-vendor-prefixed.yml +++ b/.github/workflows/build-with-vendor-prefixed.yml @@ -1,5 +1,8 @@ name: Build with vendor-prefixed +env: + NODE_VERSION: "20" + on: pull_request: branches: @@ -24,10 +27,10 @@ jobs: - name: composer install run: composer install - - name: install node v20 + - name: "install node v${{ env.NODE_VERSION }}" uses: actions/setup-node@v4 with: - node-version: 20 + node-version: ${{ env.NODE_VERSION }} - name: Build run: |