diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml new file mode 100644 index 00000000..d59ada22 --- /dev/null +++ b/.gitea/workflows/publish.yml @@ -0,0 +1,50 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages + +name: NPM Pack & Publish + +on: + push: + branches: + - main + +jobs: + test: + runs-on: docker + steps: + - uses: http://gitea.com/actions/checkout@v3 + - run: npm ci + - run: npm test + + build-npm: + needs: build + runs-on: docker + steps: + - uses: http://gitea.com/actions/checkout@v3 + - run: npm i + name: Build + - run: npm version prepatch | sed -e 's/^/newVersion="/' | sed -e 's/$/"/' + - name: set CommitID to Version + run: | + sed -i -e "s/setByGitHubActions/${{ gitea.sha }}/" ${{ gitea.workspace }}/main.js && echo "=== IO-Package FILE ===" && cat ${{ gitea.workspace }}/io-package.json + - run: | + npm pack --json | jq -r '.[0] | "filename=" + .filename + "\nid=" + .id + "\nversion=" + .version' | sed 's/\\n/\n/g' >> "$GITHUB_OUTPUT" + name: Pack NPM File + id: npmpack + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} + - name: Output information + run: echo "Filename = ${{ steps.npmpack.outputs.filename }}" && echo "ID = ${{ steps.npmpack.outputs.id }}" && echo "Version = ${{ steps.npmpack.outputs.version }}" && if [ -z "${{ steps.npmpack.outputs.filename }}" ]; then echo "Filename wrong!" && exit 1; else echo "filename fine"; fi && if [ -z "${{ steps.npmpack.outputs.version }}" ]; then echo "Version wrong!" && exit 1; else echo "Version fine"; fi + - name: Move files + run: | + cp -f ${{ gitea.workspace }}/${{ steps.npmpack.outputs.filename }} /deploy/iobroker/data/install/ + - name: Install on ioBroker + run: | + docker exec -it iobroker /bin/bash -c "iobroker url /opt/iobroker/install/${{ steps.npmpack.outputs.filename }}" + - name: Upload new Admin files + run : | + docker exec -it iobroker /bin/bash -c "iobroker upload go-e" + - name: Restart the adapter + run: | + docker exec -it iobroker /bin/bash -c "iobroker restart go-e.0" \ No newline at end of file diff --git a/README.md b/README.md index 918a06e5..db6c48c2 100644 --- a/README.md +++ b/README.md @@ -51,12 +51,23 @@ https://go-e.co/support/ ## Changelog -* 1.0.29: Bugfixes. -* 1.0.27: Enabled foreign Object usage; Full Changelog online: https://github.com/MK-2001/ioBroker.go-e/blob/main/docs/CHANGELOG.md; Issue for Object not found. -* 1.0.25": TempArray resize on FW 054 HW V2; Readme.Adaption; Dependency security updates; Added the options to consider acknowledged value changes of foreign adapters; Added choice of ack of foreign adapters (#125)\\n Minor bug for sentry; Error in tme object; Bug in Sentry. Added Catch. -* 1.0.18: First adaption of V3 hardware from go-e; Added switch to disable writing of the temperatures array; write different amont of temperature sensors; Added addtional attributes to ast; Updated several FOSS libs -* 1.0.15: Bug fixes -* 1.0.10: Enabled new Version of hardware updates +### 1.0.29 +* Bugfixes. + +### 1.0.27 +*Enabled foreign Object usage; Full Changelog online: https://github.com/MK-2001/ioBroker.go-e/blob/main/docs/CHANGELOG.md; Issue for Object not found. + +### 1.0.25 +* TempArray resize on FW 054 HW V2; Readme.Adaption; Dependency security updates; Added the options to consider acknowledged value changes of foreign adapters; Added choice of ack of foreign adapters (#125)\\n Minor bug for sentry; Error in tme object; Bug in Sentry. Added Catch. + +### 1.0.18 +* First adaption of V3 hardware from go-e; Added switch to disable writing of the temperatures array; write different amont of temperature sensors; Added addtional attributes to ast; Updated several FOSS libs + +### 1.0.15 +* Bug fixes + +### 1.0.10 +* Enabled new Version of hardware updates [Additional moved here](./CHANGELOG_OLD.md) diff --git a/package-lock.json b/package-lock.json index ec16c358..dcb0ff8d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -824,9 +824,9 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", - "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz", + "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", "dependencies": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0",