Wiki (#2014) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |