homebridge-securitysystem 7.3.0 → 7.4.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.
- package/.eslintrc.js +16 -16
- package/.github/FUNDING.yml +2 -2
- package/.github/ISSUE_TEMPLATE/bug_report.yml +46 -46
- package/.github/ISSUE_TEMPLATE/feature-request.yml +17 -17
- package/.github/ISSUE_TEMPLATE/questions-answers.yml +40 -40
- package/.github/dependabot.yml +19 -19
- package/.github/release.yml +36 -36
- package/.github/workflows/codeql.yml +76 -76
- package/.github/workflows/create-release.yml +82 -0
- package/.github/workflows/{update-version.yml → create-version.yml} +52 -52
- package/.github/workflows/dependency-review.yml +24 -24
- package/.github/workflows/install-package.yml +29 -29
- package/.github/workflows/stale.yml +26 -26
- package/.vscode/settings.json +12 -11
- package/CODE_OF_CONDUCT.md +128 -128
- package/CONTRIBUTING.md +5 -5
- package/LICENSE +21 -21
- package/README.md +47 -47
- package/SECURITY.md +12 -12
- package/config.schema.json +835 -803
- package/package.json +52 -52
- package/sounds/README +22 -22
- package/src/index.js +2418 -2393
- package/src/utils/options.js +368 -347
- package/.github/workflows/new-tag.yml +0 -39
- package/.github/workflows/publish-package.yml +0 -51
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
name: Create tag
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
types:
|
|
6
|
-
- closed
|
|
7
|
-
branches:
|
|
8
|
-
- main
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
get-tag-name:
|
|
12
|
-
name: Get tag name
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'new-release')
|
|
15
|
-
outputs:
|
|
16
|
-
tag-name: ${{ steps.get-tag-name.outputs.tag-name }}
|
|
17
|
-
steps:
|
|
18
|
-
- name: Get tag name
|
|
19
|
-
id: get-tag-name
|
|
20
|
-
run: |
|
|
21
|
-
branch_name="${{ github.event.pull_request.head.ref }}"
|
|
22
|
-
tag_name=$(echo $branch_name | sed 's/version\///')
|
|
23
|
-
echo "tag-name=$tag_name" >> $GITHUB_OUTPUT
|
|
24
|
-
|
|
25
|
-
create-tag:
|
|
26
|
-
name: Create new tag
|
|
27
|
-
needs: get-tag-name
|
|
28
|
-
runs-on: ubuntu-latest
|
|
29
|
-
if: needs.get-tag-name.outputs.tag-name != ''
|
|
30
|
-
steps:
|
|
31
|
-
- name: Checkout branch
|
|
32
|
-
uses: actions/checkout@v3
|
|
33
|
-
|
|
34
|
-
- name: Create tag name
|
|
35
|
-
run: |
|
|
36
|
-
git tag "${{ needs.get-tag-name.outputs.tag-name }}"
|
|
37
|
-
|
|
38
|
-
- name: Push tag to origin
|
|
39
|
-
run: git push origin "${{ needs.get-tag-name.outputs.tag-name }}"
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
name: Publish package
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [published]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
install-package:
|
|
9
|
-
name: Install package
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
|
|
12
|
-
steps:
|
|
13
|
-
- name: Checkout repository
|
|
14
|
-
uses: actions/checkout@v3
|
|
15
|
-
|
|
16
|
-
- name: Setup node
|
|
17
|
-
uses: actions/setup-node@v3
|
|
18
|
-
|
|
19
|
-
with:
|
|
20
|
-
cache: "npm"
|
|
21
|
-
registry-url: https://registry.npmjs.org/
|
|
22
|
-
|
|
23
|
-
- name: Install package
|
|
24
|
-
run: npm ci
|
|
25
|
-
|
|
26
|
-
publish-package:
|
|
27
|
-
name: Publish package
|
|
28
|
-
runs-on: ubuntu-latest
|
|
29
|
-
needs: [install-package]
|
|
30
|
-
|
|
31
|
-
steps:
|
|
32
|
-
- name: Checkout repository
|
|
33
|
-
uses: actions/checkout@v3
|
|
34
|
-
|
|
35
|
-
- name: Setup node
|
|
36
|
-
uses: actions/setup-node@v3
|
|
37
|
-
|
|
38
|
-
with:
|
|
39
|
-
registry-url: https://registry.npmjs.org/
|
|
40
|
-
|
|
41
|
-
- name: Get version
|
|
42
|
-
run: |
|
|
43
|
-
echo "NPM_VERSION=${GITHUB_REF##*/v}" >> $GITHUB_ENV
|
|
44
|
-
|
|
45
|
-
- name: Publish package
|
|
46
|
-
|
|
47
|
-
env:
|
|
48
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
49
|
-
|
|
50
|
-
run: |
|
|
51
|
-
npm publish --access public --tag "$(if [[ $NPM_VERSION == *-* ]]; then echo beta; else echo latest; fi)"
|