Skip to content

Commit

Permalink
v3.8.0 (#23)
Browse files Browse the repository at this point in the history
## v3.8.0 (2024-06-26)

### Other Changes
- Update dependencies (`array-flatten`)
  • Loading branch information
donavanbecker authored Jun 27, 2024
1 parent 030903c commit c7ca772
Show file tree
Hide file tree
Showing 16 changed files with 848 additions and 596 deletions.
24 changes: 0 additions & 24 deletions .github/stale.yml

This file was deleted.

102 changes: 0 additions & 102 deletions .github/workflows/Build and Publish.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Node-CI Alpha

on:
push:
branches: [alpha-*.*.*, alpha]
workflow_dispatch:

jobs:
publish:
if: ${{ github.repository == 'homebridge/bonjour' }}
uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
with:
tag: 'alpha'
dynamically_adjust_version: true
npm_version_command: 'pre'
pre_id: 'alpha'
secrets:
npm_auth_token: ${{ secrets.npm_token }}

github-releases-to-discord:
name: Discord Webhooks
needs: [publish]
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
with:
title: "Homebridge Alpha Release"
description: |
Version `v${{ needs.publish.outputs.NPM_VERSION }}`
url: "https://github.com/homebridge/bonjour/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}
43 changes: 43 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Node-CI Beta

on:
push:
branches: [beta-*.*.*, beta]
workflow_dispatch:

jobs:
build_and_test:
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: homebridge/.github/.github/workflows/eslint.yml@latest

publish:
needs: lint

if: ${{ github.repository == 'homebridge/bonjour' }}

uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
with:
tag: 'beta'
dynamically_adjust_version: true
npm_version_command: 'pre'
pre_id: 'beta'
secrets:
npm_auth_token: ${{ secrets.npm_token }}

github-releases-to-discord:
name: Discord Webhooks
needs: [build_and_test,publish]
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
with:
title: "Homebridge Beta Release"
description: |
Version `v${{ needs.publish.outputs.NPM_VERSION }}`
url: "https://github.com/homebridge/bonjour/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Node Build

on:
push:
branches: [latest]
Expand Down
51 changes: 4 additions & 47 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,12 @@ name: "CodeQL"

on:
push:
branches: [ latest ]
branches: [ latest, beta* ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ latest ]
branches: [ latest, beta* ]
schedule:
- cron: '35 12 * * 2'
- cron: '17 9 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: homebridge/.github/.github/workflows/codeql-analysis.yml@latest
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Labeler

on:
pull_request_target: # required for auto labeler
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
stale:
uses: homebridge/.github/.github/workflows/labeler.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Node Release

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:

jobs:
build_and_test:
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/bonjour' }}

uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
secrets:
npm_auth_token: ${{ secrets.npm_token }}

github-releases-to-discord:
name: Discord Webhooks
needs: [build_and_test,publish]
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
with:
title: "Homebridge Release"
description: |
Version `v${{ needs.publish.outputs.NPM_VERSION }}`
url: "https://github.com/homebridge/bonjour/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
12 changes: 12 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Stale workflow

on:
workflow_dispatch:
schedule:
- cron: '45 11 * * *'

jobs:
stale:
uses: homebridge/.github/.github/workflows/stale.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/wiki-change-notification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Wiki Changed Discord Notifications

on:
gollum

jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: 'oznu/gh-wiki-edit-discord-notification@main'
with:
discord-webhook-url: ${{ secrets.DISCORD_WEBHOOK_WIKI_EDIT }}
ignore-collaborators: true
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to `hap-nodejs` will be documented in this file. This project tries to adhere to [Semantic Versioning](http://semver.org/).

## v3.8.0 (2024-06-26)

### Other Changes

- Update dependencies (`array-flatten`)

## v3.7.3 (2024-06-24)

### Other Changes
Expand Down
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
<p align="center">
<a href="https://homebridge.io"><img src="https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png" height="140"></a>
</p>
<span align="center">

# bonjour-hap

![NPM-Version](https://badgen.net/npm/v/bonjour-hap)
![NPM-Downloads](https://badgen.net/npm/dt/bonjour-hap)
[![Node Build](https://github.com/homebridge/bonjour/actions/workflows/nodejs.yml/badge.svg)](https://github.com/homebridge/bonjour/actions/workflows/nodejs.yml)
[![Coverage Status](https://coveralls.io/repos/github/homebridge/bonjour/badge.svg?branch=master)](https://coveralls.io/github/homebridge/bonjour?branch=master)

<a href="https://www.npmjs.com/package/bonjour-hap"><img title="npm version" src="https://badgen.net/npm/v/bonjour-hap" ></a>
<a href="https://www.npmjs.com/package/bonjour-hap/v/beta"><img title="npm version beta" src="https://badgen.net/npm/v/bonjour-hap/beta" ></a>
<a href="https://www.npmjs.com/package/bonjour-hap"><img title="npm downloads" src="https://badgen.net/npm/dt/bonjour-hap" ></a>
<a href="https://github.com/homebridge/bonjour/actions/workflows/build.yml"><img title="Node Build" src="https://github.com/homebridge/bonjour/actions/workflows/build.yml/badge.svg" ></a>
<a href='https://coveralls.io/github/homebridge/bonjour?branch=latest'><img src='https://coveralls.io/repos/github/homebridge/bonjour/badge.svg?branch=latest' alt='Coverage Status' /></a>

</span>

A Bonjour/Zeroconf protocol implementation in pure JavaScript. Publish
services on the local network or discover existing services using
Expand Down
Loading

0 comments on commit c7ca772

Please sign in to comment.