-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
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 |