Skip to content

Commit

Permalink
add automated build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
benderl committed Dec 19, 2023
1 parent 632881f commit 093f702
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build_display_theme_cards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build Display Theme Cards

on:
push:
paths:
- packages/modules/display_themes/cards/source/**
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Node.js (v18)
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache-dependency-path: packages/modules/display_themes/cards/source/package-lock.json

- name: Install Dependencies and Build
run: |
cd packages/modules/display_themes/cards/source
npm install
npm run build --if-present
- name: Commit and Push Changes
run: |
git config user.name "${{ github.actor }}"
git config.user.email "${{ github.actor }}@users.noreply.github.com"
git add packages/modules/display_themes/cards/web
git commit -m "Build Display Theme: Cards"
git push

0 comments on commit 093f702

Please sign in to comment.