homebridge-plugin-sol 2.0.0 → 2.0.1

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/.gitlab-ci.yml ADDED
@@ -0,0 +1,22 @@
1
+ # ---------------------------------------------------------
2
+ stages:
3
+ - build
4
+ - deploy
5
+
6
+ # ---------------------------------------------------------
7
+ # Executing PHP Unit Tests
8
+ build:
9
+ stage: build
10
+ image: "docker.io/node:20"
11
+ only:
12
+ - main
13
+ script:
14
+ - echo "Current Node version"
15
+ - node -v
16
+ - npm -v
17
+ - echo "Install NPM packages and create plugins"
18
+ - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
19
+ - npm install
20
+ - npm run build
21
+ - npx semantic-release --debug
22
+ - npm publish
@@ -0,0 +1,14 @@
1
+ {
2
+ "branches": ["main"],
3
+ "plugins": [
4
+ "@semantic-release/commit-analyzer",
5
+ "@semantic-release/release-notes-generator",
6
+ "@semantic-release/gitlab",
7
+ "@semantic-release/npm", [
8
+ "@semantic-release/git", {
9
+ "assets": ["package.json"],
10
+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
11
+ }
12
+ ]
13
+ ]
14
+ }
package/README.md CHANGED
@@ -90,6 +90,7 @@ This will launch an instance of Homebridge in debug mode which will restart ever
90
90
  When you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:
91
91
 
92
92
  ```shell
93
+ npm login
93
94
  npm publish
94
95
  ```
95
96
 
@@ -132,6 +133,3 @@ For reference, the current criteria are:
132
133
  - The plugin must not require the user to run Homebridge in a TTY or with non-standard startup parameters, even for initial configuration.
133
134
  - If the plugin needs to write files to disk (cache, keys, etc.), it must store them inside the Homebridge storage directory.
134
135
 
135
- ### Todos
136
-
137
- - Publish
package/package.json CHANGED
@@ -2,18 +2,18 @@
2
2
  "name": "homebridge-plugin-sol",
3
3
  "displayName": "SOL",
4
4
  "type": "module",
5
- "version": "2.0.0",
5
+ "version": "2.0.1",
6
6
  "private": false,
7
7
  "description": "This is a homebridge plugin to manage smarthome devices controlled via SOL.",
8
8
  "author": "Thoralf Rickert-Wendt",
9
9
  "license": "Apache-2.0",
10
- "homepage": "https://github.com/trickert76/homebridge-plugin-sol#readme",
10
+ "homepage": "https://gitlab.m84.de/sol/homebridge-plugin-sol/-/blob/main/README.md",
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "git+https://github.com/trickert76/homebridge-plugin-sol.git"
13
+ "url": "https://gitlab.m84.de/sol/homebridge-plugin-sol.git"
14
14
  },
15
15
  "bugs": {
16
- "url": "https://github.com/trickert76/homebridge-plugin-sol/issues"
16
+ "url": "https://gitlab.m84.de/sol/homebridge-plugin-sol/-/issues"
17
17
  },
18
18
  "keywords": [
19
19
  "homebridge-plugin"
@@ -27,16 +27,24 @@
27
27
  "build": "rimraf ./dist && tsc",
28
28
  "lint": "eslint . --max-warnings=0",
29
29
  "prepublishOnly": "npm run lint && npm run build",
30
- "watch": "npm run build && npm link && nodemon"
30
+ "watch": "npm run build && npm link && nodemon",
31
+ "semantic-release": "semantic-release"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public"
31
35
  },
32
36
  "devDependencies": {
33
37
  "@eslint/js": "^9.9.0",
38
+ "@semantic-release/gitlab": "^13.2.1",
39
+ "@semantic-release/git": "^10.0.1",
40
+ "@semantic-release/npm": "^12.0.1",
34
41
  "@types/eslint__js": "^8.42.3",
35
42
  "@types/node": "^22.2.0",
36
43
  "eslint": "^9.9.0",
37
44
  "homebridge": "^2.0.0-beta.0",
38
45
  "nodemon": "^3.1.4",
39
46
  "rimraf": "^6.0.1",
47
+ "semantic-release": "^24.2.0",
40
48
  "ts-node": "^10.9.2",
41
49
  "typescript": "^5.5.4",
42
50
  "typescript-eslint": "^8.0.1"