-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (50 loc) · 1.13 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Main
on:
push:
branches:
- main
- develop
tags:
- '*'
pull_request:
env:
DEFAULT_PYTHON: "3.10"
NODE_VERSION: 16
jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm install
- name: eslint
uses: sibiraj-s/action-eslint@v3
with:
eslint-args: "--ignore-path=.gitignore --quiet"
extensions: "js"
annotations: true
- name: Pack
run: npx webpack
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/foxess-modbus-charge-period-card.js
draft: true
generate_release_notes: true
hacs:
runs-on: ubuntu-latest
name: HACS
steps:
- name: Checkout
uses: actions/checkout@v3
- name: HACS validation
uses: hacs/action@22.5.0
with:
category: plugin