Skip to content

Commit defd6fb

Browse files
committed
install tailwindcss in build-container.yml
1 parent 8e54d40 commit defd6fb

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/build-container.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,30 @@ jobs:
4848
run: |
4949
sed -i 's#<ContainerLabel Include="service" Value="my-app" />#<ContainerLabel Include="service" Value="${{ env.repository_name_lower }}" />#g' MyApp/MyApp.csproj
5050
51-
- name: Check for Client directory
51+
- name: Check for Client directory and package.json
5252
id: check_client
5353
run: |
54-
if [ -d "MyApp.Client" ]; then
55-
echo "client_exists=true" >> $GITHUB_OUTPUT
56-
else
57-
echo "client_exists=false" >> $GITHUB_OUTPUT
54+
if [ -d "MyApp.Client" ] && [ -f "MyApp.Client/package.json" ]; then
55+
echo "requires_npm=true" >> $GITHUB_OUTPUT
5856
fi
5957
6058
- name: Setup Node.js
61-
if: steps.check_client.outputs.client_exists == 'true'
59+
if: steps.check_client.outputs.requires_npm == 'true'
6260
uses: actions/setup-node@v3
6361
with:
6462
node-version: 22
6563

6664
- name: Install npm dependencies
67-
if: steps.check_client.outputs.client_exists == 'true'
65+
if: steps.check_client.outputs.requires_npm == 'true'
6866
working-directory: ./MyApp.Client
6967
run: npm install
7068

69+
- name: Install tailwindcss
70+
run: |
71+
mkdir -p /home/runner/.local/bin
72+
curl -o "/home/runner/.local/bin/tailwindcss" -L "https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64"
73+
chmod +x /home/runner/.local/bin/tailwindcss
74+
7175
- name: Install x tool
7276
run: dotnet tool install -g x
7377

NuGet.Config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<packageSources>
4-
<add key="ServiceStack Pre-Release" value="https://f.feedz.io/servicestack/pre-release/nuget/index.json" />
4+
<add key="ServiceStack MyGet feed" value="https://www.myget.org/F/servicestack" />
55
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
66
</packageSources>
77
</configuration>

0 commit comments

Comments
 (0)