@homebridge-plugins/homebridge-august 3.0.4-beta.2 → 3.0.4-beta.3

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.
@@ -47,9 +47,9 @@ jobs:
47
47
  if: ${{ github.repository == 'homebridge-plugins/homebridge-august' }}
48
48
  uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
49
49
  with:
50
- title: "August Beta Release"
50
+ title: "Air Beta Release"
51
51
  description: |
52
52
  Version `v${{ needs.publish.outputs.NPM_VERSION }}`
53
53
  url: "https://github.com/homebridge-plugins/homebridge-august/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
54
54
  secrets:
55
- DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_BETA || secrets.DISCORD_WEBHOOK_URL_LATEST }}
55
+ DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_BETA || secrets.DISCORD_WEBHOOK_URL_LATEST }}
@@ -1,35 +1,76 @@
1
- name: Release
1
+ name: Unified Release
2
2
 
3
3
  on:
4
- release:
5
- types: [published]
4
+ push:
5
+ branches:
6
+ #- "alpha-*"
7
+ #- "beta-*"
8
+ - latest
9
+ workflow_dispatch:
6
10
 
7
11
  jobs:
8
- build_and_test:
9
- uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
12
+ # 1️⃣ Determine release type, ESM status, and branch name
13
+ determine-release-type:
14
+ uses: homebridge/.github/.github/workflows/determine-release-type.yml@latest
10
15
  with:
11
- enable_coverage: false
16
+ ref_name: ${{ github.ref_name }}
17
+
18
+ # 2️⃣ Update version and changelog using the scripts
19
+ update-version:
20
+ needs: determine-release-type
21
+ uses: homebridge/.github/.github/workflows/update-version.yml@latest
22
+ with:
23
+ release_type: ${{ needs.determine-release-type.outputs.release_type }}
24
+ is_esm: ${{ needs.determine-release-type.outputs.is_esm == 'true' }}
12
25
  secrets:
13
- token: ${{ secrets.GITHUB_TOKEN }}
26
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
14
27
 
15
- publish:
16
- needs: build_and_test
17
- if: ${{ github.repository == 'homebridge-plugins/homebridge-august' }}
28
+ # 3️⃣ Publish to NPM and create GitHub release
29
+ publish-release:
30
+ needs: [determine-release-type, update-version]
18
31
  permissions:
19
32
  id-token: write
20
- uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
33
+ contents: write
34
+ uses: homebridge/.github/.github/workflows/publish-release.yml@latest
35
+ with:
36
+ release_type: ${{ needs.determine-release-type.outputs.release_type }}
37
+ version: ${{ needs.update-version.outputs.version }}
38
+ is_esm: ${{ needs.determine-release-type.outputs.is_esm == 'true' }}
39
+ secrets:
40
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41
+
42
+ # 4️⃣ Promote branch if this is a prerelease (alpha/beta)
43
+ promote-branch:
44
+ needs: [determine-release-type, publish-release]
45
+ if: ${{ needs.determine-release-type.outputs.release_type != 'latest' && needs.determine-release-type.outputs.release_type != 'skip' }}
46
+ uses: homebridge/.github/.github/workflows/promote-branch.yml@latest
47
+ with:
48
+ branch_name: ${{ needs.determine-release-type.outputs.branch_name }}
49
+ release_type: ${{ needs.determine-release-type.outputs.release_type }}
50
+ is_esm: ${{ needs.determine-release-type.outputs.is_esm == 'true' }}
21
51
  secrets:
22
- npm_auth_token: ${{ secrets.npm_token }}
52
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
53
+
54
+ # 5️⃣ Notify if any previous job fails
55
+ workflow-failure:
56
+ if: ${{ failure() }}
57
+ needs: [determine-release-type, update-version, publish-release, promote-branch]
58
+ uses: homebridge/.github/.github/workflows/report-failure.yml@latest
59
+ with:
60
+ workflow_name: ${{ github.workflow }}
61
+ job_name: ${{ github.job }}
62
+ run_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
23
63
 
64
+ # 6️⃣ Post to Discord
24
65
  github-releases-to-discord:
25
66
  name: Discord Webhooks
26
- needs: [build_and_test,publish]
27
- if: ${{ github.repository == 'homebridge-plugins/homebridge-august' }}
67
+ needs: [determine-release-type, update-version, publish-release]
28
68
  uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
29
69
  with:
30
70
  title: "August Release"
31
71
  description: |
32
- Version `v${{ needs.publish.outputs.NPM_VERSION }}`
33
- url: "https://github.com/homebridge-plugins/homebridge-august/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
72
+ Version `v${{ needs.update-version.outputs.version }}`
73
+ url: "https://github.com/homebridge-plugins/homebridge-august/releases/tag/v${{ needs.update-version.outputs.version }}"
34
74
  secrets:
35
75
  DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
76
+
@@ -1,2 +1,2 @@
1
1
  <!DOCTYPE html><html class="default" lang="en" data-base=".."><head><style>body { visibility: hidden; }</style><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="IE=edge"><title>default | @homebridge-plugins/homebridge-august</title><meta name="description" content="Documentation for @homebridge-plugins/homebridge-august"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../assets/style.css"><link rel="stylesheet" href="../assets/highlight.css"><script defer="" src="../assets/main.js"></script><script async="" src="../assets/icons.js" id="tsd-icons-script"></script><link rel="stylesheet" href="../assets/dmt/dmt-components.css"><link rel="stylesheet" href="../assets/dmt/dmt-theme.css"><script src="../assets/dmt/dmt-components.js" type="module"></script><noscript><style>body { visibility: visible; }</style></noscript></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";</script><div class="overlay"></div>
2
- <main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="../index.html" class="title">@homebridge-plugins/homebridge-august</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"></ul><div class="dmt-title-header-flex"><h1>Function default</h1></div></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="default" class="tsd-anchor"></a><span class="tsd-kind-call-signature">default</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/homebridge-plugins/homebridge-august/blob/92c24b375880993acdb657c2c7c4e9a490152c05/src/index.ts#L11">index.ts:11</a></li></ul></aside></div></li></ul></section></div><div class="col-sidebar" tabindex="-1"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked=""><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu" tabindex="-1"><nav class="tsd-navigation"><a href="../modules.html">@homebridge-plugins/homebridge-august</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"></ul></nav></div></div></div></main></body></html>
2
+ <main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="../index.html" class="title">@homebridge-plugins/homebridge-august</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"></ul><div class="dmt-title-header-flex"><h1>Function default</h1></div></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="default" class="tsd-anchor"></a><span class="tsd-kind-call-signature">default</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/homebridge-plugins/homebridge-august/blob/eddedc5bc41e928f6e1d4db9cb7669a62982e97b/src/index.ts#L11">index.ts:11</a></li></ul></aside></div></li></ul></section></div><div class="col-sidebar" tabindex="-1"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked=""><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu" tabindex="-1"><nav class="tsd-navigation"><a href="../modules.html">@homebridge-plugins/homebridge-august</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"></ul></nav></div></div></div></main></body></html>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@homebridge-plugins/homebridge-august",
3
3
  "displayName": "August",
4
4
  "type": "module",
5
- "version": "3.0.4-beta.2",
5
+ "version": "3.0.4-beta.3",
6
6
  "description": "The August plugin allows you to access your August & Yale device(s) from HomeKit.",
7
7
  "author": {
8
8
  "name": "donavanbecker",
@@ -1,18 +0,0 @@
1
- name: Node Build
2
-
3
- on:
4
- push:
5
- branches: [latest]
6
- pull_request:
7
- workflow_dispatch:
8
-
9
- jobs:
10
- build_and_test:
11
- uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
12
- with:
13
- enable_coverage: false
14
- secrets:
15
- token: ${{ secrets.GITHUB_TOKEN }}
16
- lint:
17
- needs: build_and_test
18
- uses: homebridge/.github/.github/workflows/eslint.yml@latest
@@ -1,11 +0,0 @@
1
- name: Changelog to Release
2
-
3
- on:
4
- release:
5
- types: [published]
6
-
7
- jobs:
8
- changerelease:
9
- uses: homebridge/.github/.github/workflows/change-release.yml@latest
10
- secrets:
11
- token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,9 +0,0 @@
1
- name: Labeler
2
-
3
- on: [pull_request]
4
-
5
- jobs:
6
- labeler:
7
- uses: homebridge/.github/.github/workflows/labeler.yml@latest
8
- secrets:
9
- token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,15 +0,0 @@
1
- name: PR Checks
2
-
3
- on:
4
- pull_request:
5
- types: [opened, edited, synchronize, reopened]
6
- branches:
7
- - latest
8
-
9
- jobs:
10
- prepare-beta:
11
- uses: homebridge/.github/.github/workflows/update-beta-version.yml@latest
12
- with:
13
- base-branch: latest
14
- secrets:
15
- github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,14 +0,0 @@
1
- name: Release Drafter
2
-
3
- on:
4
- push:
5
- branches: [latest]
6
- pull_request: # required for autolabeler
7
- types: [opened, reopened, synchronize]
8
- workflow_dispatch:
9
-
10
- jobs:
11
- release-drafter:
12
- uses: homebridge/.github/.github/workflows/release-drafter.yml@latest
13
- secrets:
14
- token: ${{ secrets.GITHUB_TOKEN }}