homebridge-foxess 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/dependabot.yml +3 -0
- package/.github/workflows/automerge.yml +7 -8
- package/.github/workflows/build.yml +4 -2
- package/.github/workflows/npm-publish.yml +6 -4
- package/RELEASE.md +5 -0
- package/package.json +9 -9
- package/.github/workflows/audit.yml +0 -25
- package/.github/workflows/build-homebridge2.0.yml +0 -31
- package/.github/workflows/corepack.yml +0 -38
package/.github/dependabot.yml
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
name: Auto-merge
|
|
2
2
|
on: pull_request
|
|
3
3
|
|
|
4
|
-
permissions:
|
|
5
|
-
pull-requests: write
|
|
6
|
-
contents: write
|
|
7
|
-
|
|
8
4
|
jobs:
|
|
9
5
|
automerge:
|
|
6
|
+
permissions:
|
|
7
|
+
pull-requests: write
|
|
8
|
+
contents: write
|
|
10
9
|
runs-on: ubuntu-latest
|
|
11
10
|
if: github.actor == 'dependabot[bot]' || ((startsWith(github.event.pull_request.title, 'Bump to version ') || startsWith(github.event.pull_request.title, 'Update PNPM')) && (github.actor == 'github-actions' || github.actor == 'teh-hippo'))
|
|
12
11
|
steps:
|
|
13
|
-
- uses:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
- uses: actions/checkout@v5
|
|
13
|
+
- run: gh pr merge --rebase --delete-branch --auto "${{ github.event.pull_request.number }}"
|
|
14
|
+
env:
|
|
15
|
+
GH_TOKEN: ${{ github.token }}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
3
|
|
|
4
4
|
name: Build
|
|
5
|
+
permissions:
|
|
6
|
+
contents: read
|
|
5
7
|
|
|
6
8
|
on: [pull_request]
|
|
7
9
|
|
|
@@ -16,10 +18,10 @@ jobs:
|
|
|
16
18
|
node-version: [18.x, 20.x, 22.x, latest]
|
|
17
19
|
|
|
18
20
|
steps:
|
|
19
|
-
- uses: actions/checkout@
|
|
21
|
+
- uses: actions/checkout@v5
|
|
20
22
|
- uses: pnpm/action-setup@v4
|
|
21
23
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
22
|
-
uses: actions/setup-node@
|
|
24
|
+
uses: actions/setup-node@v5.0.0
|
|
23
25
|
with:
|
|
24
26
|
node-version: ${{ matrix.node-version }}
|
|
25
27
|
cache: pnpm
|
|
@@ -10,10 +10,12 @@ on:
|
|
|
10
10
|
jobs:
|
|
11
11
|
publish:
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
13
15
|
steps:
|
|
14
|
-
- uses: actions/checkout@
|
|
16
|
+
- uses: actions/checkout@v5
|
|
15
17
|
- uses: pnpm/action-setup@v4
|
|
16
|
-
- uses: actions/setup-node@
|
|
18
|
+
- uses: actions/setup-node@v5.0.0
|
|
17
19
|
with:
|
|
18
20
|
node-version: latest
|
|
19
21
|
cache: pnpm
|
|
@@ -31,12 +33,12 @@ jobs:
|
|
|
31
33
|
pull-requests: write
|
|
32
34
|
contents: write
|
|
33
35
|
steps:
|
|
34
|
-
- uses: actions/checkout@
|
|
36
|
+
- uses: actions/checkout@v5
|
|
35
37
|
with:
|
|
36
38
|
ref: main
|
|
37
39
|
fetch-tags: true
|
|
38
40
|
- uses: pnpm/action-setup@v4
|
|
39
|
-
- uses: actions/setup-node@
|
|
41
|
+
- uses: actions/setup-node@v5.0.0
|
|
40
42
|
with:
|
|
41
43
|
node-version: latest
|
|
42
44
|
cache: pnpm
|
package/RELEASE.md
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-foxess",
|
|
3
3
|
"displayName": "Homebridge FoxESS",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "Basic utility accessories for displaying solar FoxESS solar information in Homebridge: https://github.com/nfarina/homebridge",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"homebridge": ">=1.7.0 || ^2.0.0-beta.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@eslint/js": "^9.
|
|
34
|
-
"@stylistic/eslint-plugin": "^
|
|
35
|
-
"@types/node": "^
|
|
36
|
-
"eslint": "^9.
|
|
37
|
-
"homebridge": "^1.
|
|
33
|
+
"@eslint/js": "^9.36.0",
|
|
34
|
+
"@stylistic/eslint-plugin": "^5.4.0",
|
|
35
|
+
"@types/node": "^24.6.2",
|
|
36
|
+
"eslint": "^9.36.0",
|
|
37
|
+
"homebridge": "^1.11.0",
|
|
38
38
|
"rimraf": "^6.0.1",
|
|
39
39
|
"ts-node": "^10.9.2",
|
|
40
|
-
"typescript": "^5.
|
|
41
|
-
"typescript-eslint": "^8.
|
|
40
|
+
"typescript": "^5.9.3",
|
|
41
|
+
"typescript-eslint": "^8.45.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"foxess-lib": "^0.
|
|
44
|
+
"foxess-lib": "^0.7.1"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"forceClean": "rimraf ./dist",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
-
|
|
4
|
-
name: Audit
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
|
|
8
|
-
schedule:
|
|
9
|
-
- cron: '0 0 * * *'
|
|
10
|
-
workflow_dispatch:
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
build:
|
|
14
|
-
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v4
|
|
19
|
-
- uses: pnpm/action-setup@v4
|
|
20
|
-
- uses: actions/setup-node@v4.2.0
|
|
21
|
-
with:
|
|
22
|
-
node-version: latest
|
|
23
|
-
cache: pnpm
|
|
24
|
-
- run: pnpm install --frozen-lockfile
|
|
25
|
-
- run: pnpm audit -P
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
-
|
|
4
|
-
name: Build Homebridge 2.x
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
pull_request:
|
|
8
|
-
schedule:
|
|
9
|
-
- cron: '0 0 * * *'
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
|
|
13
|
-
build:
|
|
14
|
-
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v4
|
|
19
|
-
- uses: pnpm/action-setup@v4
|
|
20
|
-
- run: |
|
|
21
|
-
sed -i -e 's/"homebridge": "\^[0-9]\.[0-9]\.[0-9]/"homebridge": "^2.0.0-beta.0/g' package.json
|
|
22
|
-
- uses: actions/setup-node@v4.2.0
|
|
23
|
-
with:
|
|
24
|
-
node-version: latest
|
|
25
|
-
cache: pnpm
|
|
26
|
-
- run: pnpm install --no-frozen-lockfile
|
|
27
|
-
- name: Show Homebridge 2.0 Version
|
|
28
|
-
run: |
|
|
29
|
-
pnpm ls homebridge --parseable | grep -o '@\([^\/]\+\)'
|
|
30
|
-
- run: pnpm build
|
|
31
|
-
- run: pnpm lint
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
-
|
|
4
|
-
name: Update PNPM
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
|
|
8
|
-
schedule:
|
|
9
|
-
- cron: '37 13 1 * *'
|
|
10
|
-
workflow_dispatch:
|
|
11
|
-
|
|
12
|
-
permissions:
|
|
13
|
-
contents: write
|
|
14
|
-
pull-requests: write
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
build:
|
|
18
|
-
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
|
|
21
|
-
steps:
|
|
22
|
-
- uses: actions/checkout@v4
|
|
23
|
-
- uses: pnpm/action-setup@v4
|
|
24
|
-
- uses: actions/setup-node@v4.2.0
|
|
25
|
-
with:
|
|
26
|
-
node-version: latest
|
|
27
|
-
cache: pnpm
|
|
28
|
-
- run: corepack use pnpm@latest
|
|
29
|
-
- name: Create Pull Request
|
|
30
|
-
uses: peter-evans/create-pull-request@v7
|
|
31
|
-
with:
|
|
32
|
-
delete-branch: true
|
|
33
|
-
title: Update PNPM
|
|
34
|
-
commit-message: |
|
|
35
|
-
Update to the latest PNPM manager.
|
|
36
|
-
token: ${{ secrets.PAT }}
|
|
37
|
-
committer: AutoHippo <auto@hippo.org>
|
|
38
|
-
branch: autohippo/update-pnpm
|