Skip to content

Adding Inovelli VZM30-SN Zigbee Switch (#3320) #6337

Adding Inovelli VZM30-SN Zigbee Switch (#3320)

Adding Inovelli VZM30-SN Zigbee Switch (#3320) #6337

Workflow file for this run

name: Build βš™ and Deploy πŸš€
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🚚
uses: actions/checkout@v4
- name: Setup pnpm βš—
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js βš—
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies 🌐
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm run pretty:check
- name: Build πŸ› 
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
run: pnpm run build
- name: Run tests 🩺
run: pnpm run test
- name: Add build.txt πŸ—“
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
run: |
git log --pretty=format:'%h' -n 1 > dist/build.txt
echo >> dist/build.txt
date +%F_%T >> dist/build.txt
- name: Deploy πŸš€
if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@v4.7.2
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
single-commit: true
clean: true