Update deploy.yml

This commit is contained in:
MacRimi 2025-02-14 12:21:07 +01:00 committed by GitHub
parent f1ea4a3ab7
commit 0ceae329d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,26 +26,19 @@ jobs:
with: with:
node-version: "20" node-version: "20"
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v4 uses: actions/configure-pages@v4
- name: Install dependencies - name: Install dependencies
run: | run: |
cd web cd web
if [ ! -f "package-lock.json" ]; then
echo "package-lock.json not found. Running npm install to generate it."
npm install
else
echo "package-lock.json found. Running npm ci."
npm ci npm ci
fi
npm install @tailwindcss/typography npm install @tailwindcss/typography
- name: Build with Next.js - name: Build with Next.js
@ -69,4 +62,3 @@ jobs:
id: deployment id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v4