2022-05-17 13:20:23 +00:00
|
|
|
name: Install and Build (Composite)
|
|
|
|
description: Installs and builds WooCommerce.
|
2022-05-19 14:48:09 +00:00
|
|
|
inputs:
|
|
|
|
working_directory:
|
|
|
|
required: false
|
|
|
|
description: The directory to target.
|
|
|
|
default: ./
|
2022-07-22 11:32:03 +00:00
|
|
|
composer_no_dev:
|
|
|
|
required: false
|
|
|
|
description: COMPOSER_NO_DEV option.
|
|
|
|
default: 1
|
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
|
2022-05-19 14:48:09 +00:00
|
|
|
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
|
2022-05-19 14:48:09 +00:00
|
|
|
working-directory: ${{ inputs.working_directory }}
|
2022-07-22 11:32:03 +00:00
|
|
|
run: COMPOSER_NO_DEV=${{ inputs.composer_no_dev }} pnpm install
|
2022-05-17 13:20:23 +00:00
|
|
|
|
|
|
|
- name: Run build
|
2022-05-17 13:42:37 +00:00
|
|
|
shell: bash
|
2022-05-19 14:48:09 +00:00
|
|
|
working-directory: ${{ inputs.working_directory }}
|
2022-08-05 00:03:17 +00:00
|
|
|
run: pnpm run build --filter="${{ inputs.working_directory }}" --color
|