Files
lovelace-time-picker-card/.github/workflows/release.yaml
T
2026-09-15 21:19:58 +03:00

28 lines
595 B
YAML

name: Release
on:
release:
types: [published]
permissions:
contents: write
jobs:
release:
name: Build and upload
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: npm
- name: Build time-picker-card.js
run: |
npm ci
npm run build
- name: Upload to release
run: gh release upload "${{ github.event.release.tag_name }}" dist/time-picker-card.js --clobber
env:
GH_TOKEN: ${{ github.token }}