woocommerce/.github/actions/install-build/action.yml

31 lines
806 B
YAML
Raw Normal View History

2022-05-17 13:20:23 +00:00
name: Install and Build (Composite)
description: Installs and builds WooCommerce.
inputs:
working_directory:
required: false
description: The directory to target.
default: ./
2022-05-17 13:20:23 +00:00
runs:
using: "composite"
steps:
- name: Install PNPM
2022-05-17 13:42:37 +00:00
shell: bash
working-directory: ${{ inputs.working_directory }}
2022-05-17 13:20:23 +00:00
run: npm install -g pnpm@^6.24.2
- name: Install dependencies
2022-05-17 13:42:37 +00:00
shell: bash
working-directory: ${{ inputs.working_directory }}
2022-05-17 13:20:23 +00:00
run: pnpm install
- name: Install Composer dependencies
2022-05-17 13:42:37 +00:00
shell: bash
working-directory: ${{ inputs.working_directory }}
2022-05-17 13:20:23 +00:00
run: pnpm nx composer-install-no-dev woocommerce
- name: Run build
2022-05-17 13:42:37 +00:00
shell: bash
working-directory: ${{ inputs.working_directory }}
2022-05-17 13:20:23 +00:00
run: pnpm nx build woocommerce