homebridge-securitysystem 7.4.0 → 7.5.0-beta.2

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.
@@ -1,82 +1,80 @@
1
- name: Create release
2
-
3
- on:
4
- pull_request:
5
- types:
6
- - closed
7
- branches:
8
- - main
9
-
10
- jobs:
11
- prepare-tag:
12
- name: Obtain 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.prepare-tag.outputs.tag-name }}
17
- steps:
18
- - name: Obtain tag name
19
- id: prepare-tag
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: prepare-tag
28
- runs-on: ubuntu-latest
29
- if: needs.prepare-tag.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.prepare-tag.outputs.tag-name }}"
37
-
38
- - name: Push tag to origin
39
- run: git push origin "${{ needs.prepare-tag.outputs.tag-name }}"
40
-
41
- create-release:
42
- name: Create new release
43
- needs: [prepare-tag, create-tag]
44
- runs-on: ubuntu-latest
45
- if: needs.prepare-tag.outputs.tag-name != ''
46
- permissions:
47
- contents: write
48
- steps:
49
- - name: Create release
50
- uses: ncipollo/release-action@v1
51
- with:
52
- tag: "${{ needs.prepare-tag.outputs.tag-name }}"
53
- prerelease: ${{ contains(needs.prepare-tag.outputs.tag-name, '-') }}
54
- generateReleaseNotes: true
55
- allowUpdates: true
56
-
57
- publish-package:
58
- name: Publish package
59
- runs-on: ubuntu-latest
60
- needs: create-release
61
-
62
- steps:
63
- - name: Checkout repository
64
- uses: actions/checkout@v3
65
-
66
- - name: Setup node
67
- uses: actions/setup-node@v3
68
-
69
- with:
70
- registry-url: https://registry.npmjs.org/
71
-
72
- - name: Get version
73
- run: |
74
- echo "NPM_VERSION=${GITHUB_REF##*/v}" >> $GITHUB_ENV
75
-
76
- - name: Publish package
77
-
78
- env:
79
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
80
-
81
- run: |
82
- npm publish --access public --provenance --tag "$(if [[ $NPM_VERSION == *-* ]]; then echo beta; else echo latest; fi)"
1
+ name: Create release
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - closed
7
+ branches:
8
+ - main
9
+
10
+ permissions:
11
+ contents: write
12
+ id-token: write
13
+
14
+ jobs:
15
+ create-tag:
16
+ name: Create tag
17
+ runs-on: ubuntu-latest
18
+ if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'new-release')
19
+ outputs:
20
+ tag-name: ${{ steps.prepare-tag.outputs.tag-name }}
21
+ steps:
22
+ - name: Parse tag
23
+ id: prepare-tag
24
+ run: |
25
+ branch_name="${{ github.event.pull_request.head.ref }}"
26
+ tag_name=$(echo $branch_name | sed 's/version\///')
27
+ echo "tag-name=$tag_name" >> $GITHUB_OUTPUT
28
+
29
+ - name: Checkout branch
30
+ uses: actions/checkout@v3
31
+
32
+ - name: Create tag
33
+ run: |
34
+ git tag "${{ steps.prepare-tag.outputs.tag-name }}"
35
+
36
+ - name: Push tag to origin
37
+ run: git push origin "${{ steps.prepare-tag.outputs.tag-name }}"
38
+
39
+ create-release:
40
+ name: Create release
41
+ needs: [create-tag]
42
+ runs-on: ubuntu-latest
43
+ if: needs.create-tag.outputs.tag-name != ''
44
+ permissions:
45
+ contents: write
46
+ steps:
47
+ - name: Create release
48
+ uses: ncipollo/release-action@v1
49
+ with:
50
+ tag: "${{ needs.create-tag.outputs.tag-name }}"
51
+ prerelease: ${{ contains(needs.create-tag.outputs.tag-name, '-') }}
52
+ generateReleaseNotes: true
53
+ allowUpdates: true
54
+
55
+ publish-package:
56
+ name: Publish package
57
+ runs-on: ubuntu-latest
58
+ needs: [create-tag, create-release]
59
+
60
+ steps:
61
+ - name: Checkout repository
62
+ uses: actions/checkout@v3
63
+
64
+ - name: Setup node
65
+ uses: actions/setup-node@v3
66
+
67
+ with:
68
+ registry-url: https://registry.npmjs.org/
69
+
70
+ - name: Get version
71
+ run: |
72
+ echo "NPM_VERSION=${{ needs.create-tag.outputs.tag-name }}" >> $GITHUB_ENV
73
+
74
+ - name: Publish package
75
+
76
+ env:
77
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
78
+
79
+ run: |
80
+ npm publish --access public --provenance --tag "$(if [[ $NPM_VERSION == *-* ]]; then echo beta; else echo latest; fi)"
@@ -1,52 +1,52 @@
1
- name: Create version
2
-
3
- on:
4
- workflow_dispatch:
5
- inputs:
6
- channel:
7
- type: choice
8
- default: stable
9
- description: Pick channel
10
- options:
11
- - alpha
12
- - beta
13
- - stable
14
-
15
- new-build-for-prerelease:
16
- type: boolean
17
- default: true
18
- description: New build for prerelease
19
-
20
- jobs:
21
- update-version:
22
- name: Update version name
23
- runs-on: ubuntu-latest
24
- permissions:
25
- contents: write
26
- pull-requests: write
27
-
28
- steps:
29
- - name: Checkout branch
30
- uses: actions/checkout@v3
31
-
32
- - name: Generate tag name
33
- uses: MiguelRipoll23/generate-tag-name@playground
34
- id: generate-tag-name
35
- with:
36
- channel: ${{ inputs.channel }}
37
-
38
- - name: Update version name
39
- uses: reedyuk/npm-version@1.2.1
40
- with:
41
- version: ${{ steps.generate-tag-name.outputs.tag-name }}
42
-
43
- - name: Create pull request
44
- uses: peter-evans/create-pull-request@v5
45
- with:
46
- branch: version/${{ steps.generate-tag-name.outputs.tag-name }}
47
- commit-message: ${{ steps.generate-tag-name.outputs.tag-name }}
48
- title: Bump version to ${{ steps.generate-tag-name.outputs.tag-name }}
49
- body: Automated pull request triggered by a new version update.
50
- labels: new-release,ignore-for-release
51
- reviewers: MiguelRipoll23
52
- draft: true
1
+ name: Create version
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ channel:
7
+ type: choice
8
+ default: stable
9
+ description: Pick channel
10
+ options:
11
+ - alpha
12
+ - beta
13
+ - stable
14
+
15
+ new-build-for-prerelease:
16
+ type: boolean
17
+ default: true
18
+ description: New build for prerelease
19
+
20
+ jobs:
21
+ update-version:
22
+ name: Update version name
23
+ runs-on: ubuntu-latest
24
+ permissions:
25
+ contents: write
26
+ pull-requests: write
27
+
28
+ steps:
29
+ - name: Checkout branch
30
+ uses: actions/checkout@v3
31
+
32
+ - name: Generate tag name
33
+ uses: MiguelRipoll23/generate-tag-name@v1.7.0
34
+ id: generate-tag-name
35
+ with:
36
+ channel: ${{ inputs.channel }}
37
+
38
+ - name: Update version name
39
+ uses: reedyuk/npm-version@1.2.1
40
+ with:
41
+ version: ${{ steps.generate-tag-name.outputs.tag-name }}
42
+
43
+ - name: Create pull request
44
+ uses: peter-evans/create-pull-request@v5
45
+ with:
46
+ branch: version/${{ steps.generate-tag-name.outputs.tag-name }}
47
+ commit-message: ${{ steps.generate-tag-name.outputs.tag-name }}
48
+ title: Bump version to ${{ steps.generate-tag-name.outputs.tag-name }}
49
+ body: Automated pull request triggered by a new version update.
50
+ labels: new-release,ignore-for-release
51
+ reviewers: MiguelRipoll23
52
+ draft: true
@@ -1,24 +1,24 @@
1
- # Dependency Review Action
2
- #
3
- # This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
4
- #
5
- # Source repository: https://github.com/actions/dependency-review-action
6
- # Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7
- name: "Dependency Review"
8
- on:
9
- pull_request:
10
- types: [opened, reopened, synchronize, ready_for_review]
11
- paths-ignore:
12
- - "**.md"
13
-
14
- permissions:
15
- contents: read
16
-
17
- jobs:
18
- dependency-review:
19
- runs-on: ubuntu-latest
20
- steps:
21
- - name: "Checkout Repository"
22
- uses: actions/checkout@v3
23
- - name: "Dependency Review"
24
- uses: actions/dependency-review-action@v3
1
+ # Dependency Review Action
2
+ #
3
+ # This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
4
+ #
5
+ # Source repository: https://github.com/actions/dependency-review-action
6
+ # Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7
+ name: "Dependency Review"
8
+ on:
9
+ pull_request:
10
+ types: [opened, reopened, synchronize, ready_for_review]
11
+ paths-ignore:
12
+ - "**.md"
13
+
14
+ permissions:
15
+ contents: read
16
+
17
+ jobs:
18
+ dependency-review:
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - name: "Checkout Repository"
22
+ uses: actions/checkout@v3
23
+ - name: "Dependency Review"
24
+ uses: actions/dependency-review-action@v3
@@ -1,29 +1,29 @@
1
- name: Install package
2
-
3
- on:
4
- push:
5
- paths-ignore:
6
- - "**.md"
7
- pull_request:
8
- types: [opened, reopened, synchronize, ready_for_review]
9
- paths-ignore:
10
- - "**.md"
11
-
12
- jobs:
13
- install-package:
14
- name: Install package
15
- runs-on: ubuntu-latest
16
-
17
- steps:
18
- - name: Checkout repository
19
- uses: actions/checkout@v3
20
-
21
- - name: Setup node
22
- uses: actions/setup-node@v3
23
-
24
- with:
25
- cache: "npm"
26
- registry-url: https://registry.npmjs.org/
27
-
28
- - name: Install package
29
- run: npm ci
1
+ name: Install package
2
+
3
+ on:
4
+ push:
5
+ paths-ignore:
6
+ - "**.md"
7
+ pull_request:
8
+ types: [opened, reopened, synchronize, ready_for_review]
9
+ paths-ignore:
10
+ - "**.md"
11
+
12
+ jobs:
13
+ install-package:
14
+ name: Install package
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v3
20
+
21
+ - name: Setup node
22
+ uses: actions/setup-node@v3
23
+
24
+ with:
25
+ cache: "npm"
26
+ registry-url: https://registry.npmjs.org/
27
+
28
+ - name: Install package
29
+ run: npm ci
@@ -1,26 +1,26 @@
1
- # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2
- #
3
- # You can adjust the behavior by modifying this file.
4
- # For more information, see:
5
- # https://github.com/actions/stale
6
- name: Mark stale issues and pull requests
7
-
8
- on:
9
- schedule:
10
- - cron: '19 9 * * *'
11
-
12
- jobs:
13
- stale:
14
- runs-on: ubuntu-latest
15
- permissions:
16
- issues: write
17
- pull-requests: write
18
-
19
- steps:
20
- - uses: actions/stale@v8
21
- with:
22
- repo-token: ${{ secrets.GITHUB_TOKEN }}
23
- stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a few days if no further activity occurs. Thank you for your contributions.'
24
- stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in a few days if no further activity occurs. Thank you for your contributions.'
25
- stale-issue-label: 'stale'
26
- stale-pr-label: 'stale'
1
+ # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2
+ #
3
+ # You can adjust the behavior by modifying this file.
4
+ # For more information, see:
5
+ # https://github.com/actions/stale
6
+ name: Mark stale issues and pull requests
7
+
8
+ on:
9
+ schedule:
10
+ - cron: '19 9 * * *'
11
+
12
+ jobs:
13
+ stale:
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ issues: write
17
+ pull-requests: write
18
+
19
+ steps:
20
+ - uses: actions/stale@v8
21
+ with:
22
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
23
+ stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a few days if no further activity occurs. Thank you for your contributions.'
24
+ stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in a few days if no further activity occurs. Thank you for your contributions.'
25
+ stale-issue-label: 'stale'
26
+ stale-pr-label: 'stale'
@@ -1,12 +1,12 @@
1
- {
2
- "javascript.inlayHints.parameterNames.enabled": "all",
3
- "editor.bracketPairColorization.enabled": true,
4
- "editor.guides.bracketPairs": true,
5
- "editor.formatOnSave": true,
6
- "editor.formatOnPaste": true,
7
- "editor.defaultFormatter": "esbenp.prettier-vscode",
8
- "[javascript]": {
9
- "editor.defaultFormatter": "esbenp.prettier-vscode"
10
- },
11
- "cSpell.words": ["securitysystem"]
12
- }
1
+ {
2
+ "javascript.inlayHints.parameterNames.enabled": "all",
3
+ "editor.bracketPairColorization.enabled": true,
4
+ "editor.guides.bracketPairs": true,
5
+ "editor.formatOnSave": true,
6
+ "editor.formatOnPaste": true,
7
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
8
+ "[javascript]": {
9
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
10
+ },
11
+ "cSpell.words": ["securitysystem"]
12
+ }