Skip to content

Commit

Permalink
Update GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Jan 16, 2025
1 parent f3e9eb9 commit b991bda
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-and-tag.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Build and Tag

env:
NODE_VERSION: "20"

on:
push:
branches:
Expand All @@ -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: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build Docs

env:
NODE_VERSION: "20"

on:
push:
branches:
Expand Down Expand Up @@ -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: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build-with-vendor-prefixed.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build with vendor-prefixed

env:
NODE_VERSION: "20"

on:
pull_request:
branches:
Expand All @@ -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: |
Expand Down

0 comments on commit b991bda

Please sign in to comment.