30 lines
793 B
YAML
30 lines
793 B
YAML
name: Install and Build (Composite)
|
|
description: Installs and builds WooCommerce.
|
|
inputs:
|
|
working_directory:
|
|
required: false
|
|
description: The directory to target.
|
|
default: ./
|
|
composer_no_dev:
|
|
required: false
|
|
description: COMPOSER_NO_DEV option.
|
|
default: 1
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install PNPM
|
|
shell: bash
|
|
working-directory: ${{ inputs.working_directory }}
|
|
run: npm install -g pnpm@^6.24.2
|
|
|
|
- name: Install dependencies
|
|
shell: bash
|
|
working-directory: ${{ inputs.working_directory }}
|
|
run: COMPOSER_NO_DEV=${{ inputs.composer_no_dev }} pnpm install
|
|
|
|
- name: Run build
|
|
shell: bash
|
|
working-directory: ${{ inputs.working_directory }}
|
|
run: pnpm -- turbo run build --filter=woocommerce
|