diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index c9cd117..8a573fb 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -53,44 +53,44 @@ jobs: # install-command: 'npm install' build: true -# TODO: To enable automatic npm releases, create a token on npmjs.org +# TODO: To enable automatic npm releases, create a token on npmjs.org # Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options # Then uncomment the following block: # # Deploys the final package to NPM -# deploy: -# needs: [check-and-lint, adapter-tests] -# -# # Trigger this step only when a commit on any branch is tagged with a version number -# if: | -# contains(github.event.head_commit.message, '[skip ci]') == false && -# github.event_name == 'push' && -# startsWith(github.ref, 'refs/tags/v') -# -# runs-on: ubuntu-latest -# -# # Write permissions are required to create Github releases -# permissions: -# contents: write -# -# steps: -# - uses: ioBroker/testing-action-deploy@v1 -# with: -# node-version: '18.x' -# # Uncomment the following line if your adapter cannot be installed using 'npm ci' -# # install-command: 'npm install' -# build: true -# npm-token: ${{ secrets.NPM_TOKEN }} -# github-token: ${{ secrets.GITHUB_TOKEN }} -# -# # When using Sentry for error reporting, Sentry can be informed about new releases -# # To enable create a API-Token in Sentry (User settings, API keys) -# # Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options -# # Then uncomment and customize the following block: -# sentry: true -# sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }} -# sentry-project: "iobroker-sun2000-modbus" -# sentry-version-prefix: "iobroker.sun2000-modbus" -# sentry-sourcemap-paths: "build/" -# # If your sentry project is linked to a GitHub repository, you can enable the following option -# # sentry-github-integration: true + deploy: + needs: [check-and-lint, adapter-tests] + + # Trigger this step only when a commit on any branch is tagged with a version number + if: | + contains(github.event.head_commit.message, '[skip ci]') == false && + github.event_name == 'push' && + startsWith(github.ref, 'refs/tags/v') + + runs-on: ubuntu-latest + + # Write permissions are required to create Github releases + permissions: + contents: write + + steps: + - uses: ioBroker/testing-action-deploy@v1 + with: + node-version: '18.x' + # Uncomment the following line if your adapter cannot be installed using 'npm ci' + # install-command: 'npm install' + build: true + npm-token: ${{ secrets.NPM_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} + + # When using Sentry for error reporting, Sentry can be informed about new releases + # To enable create a API-Token in Sentry (User settings, API keys) + # Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options + # Then uncomment and customize the following block: + sentry: true + sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }} + sentry-project: "iobroker-sun2000-modbus" + sentry-version-prefix: "iobroker.sun2000-modbus" + sentry-sourcemap-paths: "build/" + # If your sentry project is linked to a GitHub repository, you can enable the following option + # sentry-github-integration: true diff --git a/README.md b/README.md index e501cd8..1b80c1f 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,9 @@ Read data from Huawei SUN2000 inverter and LUNA2000 Storage using Modbus TCP. * `updateIntervalLow`: Slower update interval (default: 20 sec) ## Changelog -### 0.0.1 (2023-11-26) + +### **WORK IN PROGRESS** + * (daolis) initial release ## License diff --git a/io-package.json b/io-package.json index b580fd1..b016f98 100644 --- a/io-package.json +++ b/io-package.json @@ -1,7 +1,7 @@ { "common": { "name": "sun2000-modbus", - "version": "0.0.1", + "version": "0.0.0", "news": { "0.0.1": { "en": "initial release", diff --git a/package.json b/package.json index a7bb62c..89ebdda 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.sun2000-modbus", - "version": "0.0.1", + "version": "0.0.0", "description": "Connect to Huawei SUN2000 inverter with Modbus TCP", "author": { "name": "daolis",