@switchbot/homebridge-switchbot 3.8.2-beta.3 → 3.8.3-beta.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.
@@ -3,8 +3,6 @@ name: Node-CI Beta
3
3
  on:
4
4
  push:
5
5
  branches: [beta-*.*.*, beta]
6
- release:
7
- types: [prereleased]
8
6
  workflow_dispatch:
9
7
 
10
8
  jobs:
@@ -14,15 +12,14 @@ jobs:
14
12
  enable_coverage: true
15
13
  secrets:
16
14
  token: ${{ secrets.GITHUB_TOKEN }}
15
+
17
16
  lint:
18
17
  needs: build_and_test
19
18
  uses: OpenWonderLabs/.github/.github/workflows/eslint.yml@latest
20
19
 
21
20
  publish:
22
21
  needs: lint
23
-
24
22
  if: ${{ github.repository == 'OpenWonderLabs/homebridge-switchbot' }}
25
-
26
23
  uses: OpenWonderLabs/.github/.github/workflows/npm-publish.yml@latest
27
24
  with:
28
25
  tag: 'beta'
@@ -32,13 +29,23 @@ jobs:
32
29
  secrets:
33
30
  npm_auth_token: ${{ secrets.npm_token }}
34
31
 
35
- github-releases-to-discord:
32
+ pre-release:
36
33
  needs: publish
34
+ if: ${{ github.repository == 'OpenWonderLabs/homebridge-switchbot' }}
35
+ uses: OpenWonderLabs/.github/.github/workflows/pre-release.yml@latest
36
+ with:
37
+ npm_version: ${{ needs.publish.outputs.NPM_VERSION }}
38
+ body: |
39
+ **Beta Release**
40
+ **Version**: v${{ needs.publish.outputs.NPM_VERSION }}
41
+ [How To Test Beta Releases](https://github.com/OpenWonderLabs/homebridge-switchbot/wiki/Beta-Version)
37
42
 
38
- if: ${{ github.repository == 'OpenWonderLabs/homebridge-switchbot' && github.event.release.prerelease == true }}
39
-
43
+ github-releases-to-discord:
44
+ needs: pre-release
45
+ if: ${{ github.repository == 'OpenWonderLabs/homebridge-switchbot' }}
40
46
  uses: OpenWonderLabs/.github/.github/workflows/discord-webhooks.yml@latest
41
47
  with:
42
- footer_title: "SwitchBot"
48
+ message_title: "SwitchBot"
49
+ message_url: "https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
43
50
  secrets:
44
51
  DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}
@@ -28,7 +28,8 @@ jobs:
28
28
 
29
29
  uses: OpenWonderLabs/.github/.github/workflows/discord-webhooks.yml@latest
30
30
  with:
31
- footer_title: "SwitchBot"
31
+ message_title: "SwitchBot"
32
+ message_url: "https://github.com/OpenWonderLabs/homebridge-switchbot/releases/latest"
32
33
  secrets:
33
34
  DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
34
35
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@switchbot/homebridge-switchbot",
3
3
  "displayName": "SwitchBot",
4
4
  "type": "module",
5
- "version": "3.8.2-beta.3",
5
+ "version": "3.8.3-beta.0",
6
6
  "description": "The SwitchBot plugin allows you to access your SwitchBot device(s) from HomeKit.",
7
7
  "author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
8
8
  "contributors": [
@@ -107,7 +107,6 @@
107
107
  "ts-node": "^10.9.2",
108
108
  "typedoc": "^0.26.7",
109
109
  "typescript": "^5.6.2",
110
- "typescript-axios-wb": "^1.0.3",
111
110
  "vitest": "^2.1.1"
112
111
  },
113
112
  "directories": {