homebridge-eggtimer-plugin 1.0.33 → 1.0.35

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.
@@ -16,15 +16,10 @@ jobs:
16
16
 
17
17
  steps:
18
18
  - uses: actions/checkout@v4
19
- - uses: actions/cache@v4
20
- name: Cache node modules
21
- with:
22
- path: node_modules
23
- key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
24
- - name: Use Node.js 20.x
25
- uses: actions/setup-node@v4.0.3
26
- with:
27
- node-version: 20.x
28
19
  - uses: pnpm/action-setup@v4
20
+ - uses: actions/setup-node@v4.2.0
21
+ with:
22
+ node-version: latest
23
+ cache: pnpm
29
24
  - run: pnpm install --frozen-lockfile
30
- - run: pnpm audit
25
+ - run: pnpm audit -P
@@ -8,7 +8,7 @@ permissions:
8
8
  jobs:
9
9
  automerge:
10
10
  runs-on: ubuntu-latest
11
- if: github.actor == 'dependabot[bot]' || (startsWith(github.event.pull_request.title, 'Bump to version ') && (github.actor == 'github-actions' || github.actor == 'teh-hippo'))
11
+ 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
12
  steps:
13
13
  - uses: peter-evans/enable-pull-request-automerge@v3
14
14
  with:
@@ -0,0 +1,31 @@
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
@@ -3,8 +3,7 @@
3
3
 
4
4
  name: Build
5
5
 
6
- on:
7
- pull_request:
6
+ on: [pull_request]
8
7
 
9
8
  jobs:
10
9
 
@@ -14,19 +13,16 @@ jobs:
14
13
 
15
14
  strategy:
16
15
  matrix:
17
- node-version: [16.x, 18.x, 20.x, 22.x]
16
+ node-version: [18.x, 20.x, 22.x, latest]
18
17
 
19
18
  steps:
20
19
  - uses: actions/checkout@v4
21
- - uses: actions/cache@v4
22
- name: Cache node modules
23
- with:
24
- path: node_modules
25
- key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
20
+ - uses: pnpm/action-setup@v4
26
21
  - name: Use Node.js ${{ matrix.node-version }}
27
- uses: actions/setup-node@v4.0.3
22
+ uses: actions/setup-node@v4.2.0
28
23
  with:
29
24
  node-version: ${{ matrix.node-version }}
30
- - uses: pnpm/action-setup@v4
25
+ cache: pnpm
31
26
  - run: pnpm install --frozen-lockfile
32
- - run: pnpm lint
27
+ - run: pnpm lint
28
+ - run: pnpm build
@@ -6,7 +6,7 @@ name: Update PNPM
6
6
  on:
7
7
 
8
8
  schedule:
9
- - cron: '0 0 * * *'
9
+ - cron: '37 13 1 * *'
10
10
  workflow_dispatch:
11
11
 
12
12
  permissions:
@@ -20,18 +20,14 @@ jobs:
20
20
 
21
21
  steps:
22
22
  - uses: actions/checkout@v4
23
- - uses: actions/cache@v4
24
- name: Cache node modules
25
- with:
26
- path: node_modules
27
- key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.json') }}
28
- - uses: actions/setup-node@v4.0.3
29
- with:
30
- node-version: 16.x
31
23
  - uses: pnpm/action-setup@v4
24
+ - uses: actions/setup-node@v4.2.0
25
+ with:
26
+ node-version: latest
27
+ cache: pnpm
32
28
  - run: corepack up
33
29
  - name: Create Pull Request
34
- uses: peter-evans/create-pull-request@v6
30
+ uses: peter-evans/create-pull-request@v7
35
31
  with:
36
32
  delete-branch: true
37
33
  title: Update PNPM
@@ -12,11 +12,12 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  steps:
14
14
  - uses: actions/checkout@v4
15
- - uses: actions/setup-node@v4.0.3
15
+ - uses: pnpm/action-setup@v4
16
+ - uses: actions/setup-node@v4.2.0
16
17
  with:
17
- node-version: 18
18
+ node-version: latest
19
+ cache: pnpm
18
20
  registry-url: https://registry.npmjs.org/
19
- - uses: pnpm/action-setup@v4
20
21
  - run: pnpm install --frozen-lockfile
21
22
  - run: pnpm build
22
23
  - run: pnpm publish --no-git-checks
@@ -34,17 +35,18 @@ jobs:
34
35
  with:
35
36
  ref: main
36
37
  fetch-tags: true
37
- - uses: actions/setup-node@v4.0.3
38
+ - uses: pnpm/action-setup@v4
39
+ - uses: actions/setup-node@v4.2.0
38
40
  with:
39
- node-version: 18
41
+ node-version: latest
42
+ cache: pnpm
40
43
  registry-url: https://registry.npmjs.org/
41
- - uses: pnpm/action-setup@v4
42
44
  - run: pnpm version patch --no-git-tag-version
43
45
  - name: get-npm-version
44
46
  id: version-after
45
47
  uses: martinbeentjes/npm-get-version-action@v1.3.1
46
48
  - name: Create Pull Request
47
- uses: peter-evans/create-pull-request@v6
49
+ uses: peter-evans/create-pull-request@v7
48
50
  with:
49
51
  add-paths: |
50
52
  package.json
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-eggtimer-plugin",
3
3
  "displayName": "Homebridge Eggtimer Plugin",
4
- "version": "1.0.33",
4
+ "version": "1.0.35",
5
5
  "description": "Egg Timers for Homebridge: https://github.com/nfarina/homebridge",
6
6
  "license": "MIT",
7
7
  "keywords": [
@@ -32,16 +32,16 @@
32
32
  "homebridge": ">=1.3.5 || ^2.0.0-beta.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@stylistic/eslint-plugin": "^2.1.0",
35
+ "@stylistic/eslint-plugin": "^3.0.0",
36
36
  "@types/async-lock": "^1.4.2",
37
37
  "@types/node": "^22.0.0",
38
38
  "@types/node-persist": "^3.1.8",
39
- "eslint": "^8.57.0",
39
+ "eslint": "^9.9.0",
40
40
  "homebridge": "^1.8.2",
41
41
  "rimraf": "^6.0.1",
42
42
  "ts-node": "^10.9.2",
43
43
  "typescript": "^5.4.5",
44
- "typescript-eslint": "^7.13.0"
44
+ "typescript-eslint": "^8.0.0"
45
45
  },
46
46
  "dependencies": {
47
47
  "async-lock": "^1.4.1",