Skip to content

Commit

Permalink
beta-3.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Sep 26, 2024
1 parent 3ea2fde commit c160691
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Node-CI Beta
on:
push:
branches: [beta-*.*.*, beta]
release:
types: [prereleased]
workflow_dispatch:

jobs:
Expand All @@ -14,15 +12,14 @@ jobs:
enable_coverage: true
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

lint:
needs: build_and_test
uses: OpenWonderLabs/.github/.github/workflows/eslint.yml@latest

publish:
needs: lint

if: ${{ github.repository == 'OpenWonderLabs/homebridge-switchbot' }}

uses: OpenWonderLabs/.github/.github/workflows/npm-publish.yml@latest
with:
tag: 'beta'
Expand All @@ -32,13 +29,23 @@ jobs:
secrets:
npm_auth_token: ${{ secrets.npm_token }}

github-releases-to-discord:
pre-release:
needs: publish
if: ${{ github.repository == 'OpenWonderLabs/homebridge-switchbot' }}
uses: OpenWonderLabs/.github/.github/workflows/pre-release.yml@latest
with:
npm_version: ${{ needs.publish.outputs.NPM_VERSION }}
body: |
**Beta Release**
**Version**: v${{ needs.publish.outputs.NPM_VERSION }}
[How To Test Beta Releases](https://github.com/OpenWonderLabs/homebridge-switchbot/wiki/Beta-Version)
if: ${{ github.repository == 'OpenWonderLabs/homebridge-switchbot' && github.event.release.prerelease == true }}

github-releases-to-discord:
needs: pre-release
if: ${{ github.repository == 'OpenWonderLabs/homebridge-switchbot' }}
uses: OpenWonderLabs/.github/.github/workflows/discord-webhooks.yml@latest
with:
footer_title: "SwitchBot"
message_title: "SwitchBot"
message_url: "https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
secrets:
DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:

uses: OpenWonderLabs/.github/.github/workflows/discord-webhooks.yml@latest
with:
footer_title: "SwitchBot"
message_title: "SwitchBot"
message_url: "https://github.com/OpenWonderLabs/homebridge-switchbot/releases/latest"
secrets:
DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@switchbot/homebridge-switchbot",
"displayName": "SwitchBot",
"type": "module",
"version": "3.8.2",
"version": "3.8.3",
"description": "The SwitchBot plugin allows you to access your SwitchBot device(s) from HomeKit.",
"author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
"contributors": [
Expand Down Expand Up @@ -107,7 +107,6 @@
"ts-node": "^10.9.2",
"typedoc": "^0.26.7",
"typescript": "^5.6.2",
"typescript-axios-wb": "^1.0.3",
"vitest": "^2.1.1"
},
"directories": {
Expand Down

0 comments on commit c160691

Please sign in to comment.