Restrict action to just changes to the "public" path:
on:
push:
paths:
- 'public/*'
Trigger only on PR close:
on:
pull_request:
types: [closed]
A step with a single command:
- name: Install Dependencies
run: npm install
A step with a multiple commands:
- name: Clean install dependencies and build
run: |
npm ci
npm run build
Invoke an action
steps:
- uses: jakejarvis/s3-sync-action@master