Skip to content

Commit c372fef

Browse files
authored
Merge pull request #479 from ExperienceLovelace/maintenance/gh_workflow_with_build_and_node_bump
Maintenance/gh_workflow_with_build_and_node_bump
2 parents fa7df50 + 6009c86 commit c372fef

File tree

5 files changed

+30
-7
lines changed

5 files changed

+30
-7
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Last commit
4+
name: Build on Push[master] and PR[master]
55

66
on:
77
push:
@@ -21,16 +21,16 @@ jobs:
2121

2222
strategy:
2323
matrix:
24-
node-version: [16.x]
24+
node-version: [20.x]
2525

2626
steps:
27-
- uses: actions/checkout@master
27+
- uses: actions/checkout@v4
2828
with:
2929
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
3030
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
3131

3232
- name: Build files with Node.js ${{ matrix.node-version }}
33-
uses: actions/setup-node@v3
33+
uses: actions/setup-node@v4
3434
with:
3535
node-version: ${{ matrix.node-version }}
3636

.github/workflows/hacs-validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
validate:
1313
runs-on: "ubuntu-latest"
1414
steps:
15-
- uses: "actions/checkout@v2"
15+
- uses: actions/checkout@v4
1616
- name: HACS validation
1717
uses: "hacs/action@main"
1818
with:

.github/workflows/release.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- "v*.*.*"
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Install
13+
run: npm ci
14+
- name: Build
15+
run: npm run build
16+
- name: Release
17+
uses: softprops/action-gh-release@v2
18+
if: startsWith(github.ref, 'refs/tags/')
19+
with:
20+
draft: true
21+
generate_release_notes: true
22+
files: dist/*.js

hacs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "ha-floorplan 🖌🎨 | Your imagination just became the new limit",
33
"filename": "floorplan.js",
4-
"render_readme": true
4+
"render_readme": true,
5+
"homeassistant": "2024.6.0"
56
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ha-floorplan",
3-
"version": "1.0.46",
3+
"version": "1.0.47",
44
"description": "Floorplan for Home Assistant",
55
"homepage": "https://experiencelovelace.github.io/ha-floorplan",
66
"keywords": [

0 commit comments

Comments
 (0)