From 13778ec7d32c40b186e4af6a84bde783989f5c81 Mon Sep 17 00:00:00 2001 From: Tobias Nordahl Kristensen Date: Thu, 31 Oct 2024 15:39:31 +0100 Subject: [PATCH 1/5] Bump build workflow --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c9955bec..dc8f161f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Last commit +name: Build on Push[master] and PR[master] on: push: @@ -21,16 +21,16 @@ jobs: strategy: matrix: - node-version: [16.x] + node-version: [20.x] steps: - - uses: actions/checkout@master + - uses: actions/checkout@4 with: persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token fetch-depth: 0 # otherwise, you will failed to push refs to dest repo - name: Build files with Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} From 9a9a38a50457ee7bca0342c52fb749ecac30e3e1 Mon Sep 17 00:00:00 2001 From: Tobias Nordahl Kristensen Date: Thu, 31 Oct 2024 15:39:58 +0100 Subject: [PATCH 2/5] Add release workflow --- .github/workflows/release.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..ca148cf7 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,22 @@ +name: Release +on: + push: + tags: + - "v*.*.*" +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install + run: npm ci + - name: Build + run: npm run build + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + draft: true + generate_release_notes: true + files: dist/*.js \ No newline at end of file From f2a737b21f5abeb73d5bc435cd6267094cc31720 Mon Sep 17 00:00:00 2001 From: Tobias Nordahl Kristensen Date: Thu, 31 Oct 2024 15:41:35 +0100 Subject: [PATCH 3/5] 1.0.47 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9a08c909..e3736e94 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ha-floorplan", - "version": "1.0.46", + "version": "1.0.47", "description": "Floorplan for Home Assistant", "homepage": "https://experiencelovelace.github.io/ha-floorplan", "keywords": [ From 9df056366c98956f541f362aa8580504c6d13f21 Mon Sep 17 00:00:00 2001 From: Tobias Nordahl Kristensen Date: Thu, 31 Oct 2024 15:44:16 +0100 Subject: [PATCH 4/5] Add home assistant minimum version --- hacs.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hacs.json b/hacs.json index ad64ef07..2bba4172 100644 --- a/hacs.json +++ b/hacs.json @@ -1,5 +1,6 @@ { "name": "ha-floorplan 🖌🎨 | Your imagination just became the new limit", "filename": "floorplan.js", - "render_readme": true + "render_readme": true, + "homeassistant": "2024.6.0" } \ No newline at end of file From 6009c86b5227636793a7141b2d07169edd1ec42a Mon Sep 17 00:00:00 2001 From: Tobias Nordahl Kristensen Date: Thu, 31 Oct 2024 15:45:56 +0100 Subject: [PATCH 5/5] Fix incorrect checkout version --- .github/workflows/build.yml | 2 +- .github/workflows/hacs-validation.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dc8f161f..a7cd9f6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: node-version: [20.x] steps: - - uses: actions/checkout@4 + - uses: actions/checkout@v4 with: persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token fetch-depth: 0 # otherwise, you will failed to push refs to dest repo diff --git a/.github/workflows/hacs-validation.yaml b/.github/workflows/hacs-validation.yaml index 28b1c283..328583fe 100644 --- a/.github/workflows/hacs-validation.yaml +++ b/.github/workflows/hacs-validation.yaml @@ -12,7 +12,7 @@ jobs: validate: runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v2" + - uses: actions/checkout@v4 - name: HACS validation uses: "hacs/action@main" with: