Skip to content

Commit

Permalink
Merge pull request #1312 from benderl/display-theme-cards-build
Browse files Browse the repository at this point in the history
automated cards display theme build
  • Loading branch information
benderl authored Feb 15, 2024
2 parents a97f48a + 82ec9bf commit de985d2
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 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@v4

- name: Setup Node.js (v20)
uses: actions/setup-node@v4
with:
node-version: 20
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
4 changes: 2 additions & 2 deletions .github/workflows/github-actions-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.9.2"
- name: Install dependencies
Expand Down

0 comments on commit de985d2

Please sign in to comment.