Skip to content

Commit c0adf94

Browse files
authored
Merge pull request #67 from liamgold/fix/build-client-assets-in-ci
Fix: Build client assets in GitHub Actions workflows
2 parents e784219 + e0e7425 commit c0adf94

File tree

7 files changed

+34
-2
lines changed

7 files changed

+34
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ jobs:
1919
with:
2020
dotnet-version: 8.0.x
2121

22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 22
26+
27+
- name: Install client dependencies
28+
run: npm ci
29+
working-directory: src/Client
30+
31+
- name: Build client assets
32+
run: npm run build
33+
working-directory: src/Client
34+
2235
- name: Restore dependencies
2336
run: dotnet restore
2437

.github/workflows/publish.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ jobs:
2020
with:
2121
dotnet-version: 8.0.x
2222

23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 22
27+
28+
- name: Install client dependencies
29+
run: npm ci
30+
working-directory: src/Client
31+
32+
- name: Build client assets
33+
run: npm run build
34+
working-directory: src/Client
35+
2336
- name: Restore dependencies
2437
run: dotnet restore
2538

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ FodyWeavers.xsd
400400
# Exclude the entire .idea folder for JetBrains IDEs
401401
.idea/
402402

403+
# Client build artifacts
404+
src/Client/dist/*
405+
403406
# Include specific project configuration files
404407
!.idea/misc.xml
405408
!.idea/modules.xml

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

src/Client/dist/entry.kxh.2f8ca3a4baf4f24f2fb3.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Client/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"version": "1.0.0",
44
"description": "Custom Kentico Xperience administration project.",
55
"private": true,
6+
"engines": {
7+
"node": ">=22"
8+
},
69
"scripts": {
710
"start": "webpack serve --mode development",
811
"dev:buildlike": "webpack serve --mode development --env buildlike=true",

src/XperienceCommunity.Sustainability.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PropertyGroup>
1212
<Title>Xperience by Kentico Sustainability</Title>
1313
<PackageId>XperienceCommunity.Sustainability</PackageId>
14-
<Version>2.7.0</Version>
14+
<Version>2.7.1</Version>
1515
<Authors>Liam Goldfinch</Authors>
1616
<Company>Liam Goldfinch</Company>
1717
<PackageIcon>icon.png</PackageIcon>

0 commit comments

Comments
 (0)