👷 Add workflow to build theme

pull/368/head
James Panther 2022-11-14 14:05:50 +11:00
parent a5e748f2d8
commit fd5adc843d
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
name: Build Theme
on:
pull_request_target:
types: [opened, edited]
branches:
- "dependabot/*"
jobs:
build:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]' || github.event.sender.login == 'dependabot[bot]'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies and Build Theme
uses: actions/setup-node@v3
- run: npm install
- run: npm run build
- name: Commit and push CSS changes
uses: devops-infra/action-commit-push@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
commit_message: "💄 Rebuild CSS"
- run: npm run assets
- name: Commit and push vendor changes
uses: devops-infra/action-commit-push@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
commit_message: "📦 Update packaged assets"