homebridge-securitysystem 7.2.1 → 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.
@@ -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)"