Skip to content

Commit

Permalink
platform config
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Nov 1, 2024
1 parent 8bf4693 commit b7b0564
Show file tree
Hide file tree
Showing 13 changed files with 91 additions and 88 deletions.
3 changes: 0 additions & 3 deletions .github/auto-merge.yml

This file was deleted.

25 changes: 14 additions & 11 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ on:

jobs:
build_and_test:
uses: donavanbecker/.github/.github/workflows/nodejs-build-and-test.yml@latest
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
enable_coverage: true
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
lint:
needs: build_and_test
uses: donavanbecker/.github/.github/workflows/eslint.yml@latest
uses: homebridge/.github/.github/workflows/eslint.yml@latest

publish:
needs: lint

if: ${{ github.repository == 'homebridge-plugins/homebridge-air' }}

uses: donavanbecker/.github/.github/workflows/npm-publish.yml@latest
permissions:
id-token: write
uses: homebridge/.github/.github/workflows/npm-publish-esm.yml@latest
with:
tag: 'beta'
dynamically_adjust_version: true
Expand All @@ -33,7 +33,7 @@ jobs:
pre-release:
needs: publish
if: ${{ github.repository == 'homebridge-plugins/homebridge-air' }}
uses: donavanbecker/.github/.github/workflows/pre-release.yml@latest
uses: homebridge/.github/.github/workflows/pre-release.yml@latest
with:
npm_version: ${{ needs.publish.outputs.NPM_VERSION }}
body: |
Expand All @@ -42,11 +42,14 @@ jobs:
[How To Test Beta Releases](https://github.com/homebridge-plugins/homebridge-air/wiki/Beta-Version)
github-releases-to-discord:
needs: [publish, pre-release]
name: Discord Webhooks
needs: [build_and_test,publish]
if: ${{ github.repository == 'homebridge-plugins/homebridge-air' }}
uses: donavanbecker/.github/.github/workflows/discord-webhooks.yml@latest
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
with:
message_title: "RainBird Beta Release"
message_url: "https://github.com/OpenWonderLabs/homebridge-air/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
title: "Air Beta Release"
description: |
Version `v${{ needs.publish.outputs.NPM_VERSION }}`
url: "https://github.com/homebridge-plugins/homebridge-air/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
secrets:
DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_BETA || secrets.DISCORD_WEBHOOK_URL_LATEST }}
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ on:

jobs:
build_and_test:
uses: donavanbecker/.github/.github/workflows/nodejs-build-and-test.yml@latest
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
enable_coverage: true
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
lint:
needs: build_and_test
uses: donavanbecker/.github/.github/workflows/eslint.yml@latest
uses: homebridge/.github/.github/workflows/eslint.yml@latest
2 changes: 1 addition & 1 deletion .github/workflows/changerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ on:

jobs:
changerelease:
uses: donavanbecker/.github/.github/workflows/changerelease.yml@latest
uses: homebridge/.github/.github/workflows/change-release.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 0 additions & 13 deletions .github/workflows/dependabot.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ on: [pull_request]

jobs:
labeler:
uses: donavanbecker/.github/.github/workflows/labeler.yml@latest
uses: homebridge/.github/.github/workflows/labeler.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ on:

jobs:
release-drafter:
uses: donavanbecker/.github/.github/workflows/release-drafter.yml@latest
uses: homebridge/.github/.github/workflows/release-drafter.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
23 changes: 12 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,30 @@ on:

jobs:
build_and_test:
uses: donavanbecker/.github/.github/workflows/nodejs-build-and-test.yml@latest
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
enable_coverage: true
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

publish:
needs: build_and_test

if: ${{ github.repository == 'homebridge-plugins/homebridge-air' }}

uses: donavanbecker/.github/.github/workflows/npm-publish.yml@latest
permissions:
id-token: write
uses: homebridge/.github/.github/workflows/npm-publish-esm.yml@latest
secrets:
npm_auth_token: ${{ secrets.npm_token }}

github-releases-to-discord:
needs: publish

name: Discord Webhooks
needs: [build_and_test,publish]
if: ${{ github.repository == 'homebridge-plugins/homebridge-air' }}

uses: donavanbecker/.github/.github/workflows/discord-webhooks.yml@latest
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
with:
message_title: "Air"
message_url: "https://github.com/donavanbecker/homebridge-august/releases/tag/v${{ github.event.release.tag_name }}"
title: "Air Release"
description: |
Version `v${{ needs.publish.outputs.NPM_VERSION }}`
url: "https://github.com/homebridge-plugins/homebridge-air/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
secrets:
DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ on:

jobs:
stale:
uses: donavanbecker/.github/.github/workflows/stale.yml@latest
uses: homebridge/.github/.github/workflows/stale.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
88 changes: 51 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.14",
"@types/mdast": "^4.0.4",
"@types/node": "^22.8.5",
"@types/node": "^22.8.6",
"@types/semver": "^7.5.8",
"@types/source-map-support": "^0.5.10",
"@vitest/coverage-v8": "^2.1.4",
"eslint": "^9.13.0",
"eslint": "^9.14.0",
"eslint-plugin-format": "^0.1.2",
"homebridge": "^1.8.5",
"homebridge-config-ui-x": "4.62.0",
Expand All @@ -86,7 +86,7 @@
"npm-check-updates": "^17.1.9",
"shx": "^0.3.4",
"ts-node": "^10.9.2",
"typedoc": "^0.26.10",
"typedoc": "^0.26.11",
"typescript": "^5.6.3",
"typescript-axios-wb": "^1.0.3",
"vitest": "^2.1.4"
Expand Down
Loading

0 comments on commit b7b0564

Please sign in to comment.