mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update deploy.yml
This commit is contained in:
parent
f1ea4a3ab7
commit
0ceae329d7
20
.github/workflows/deploy.yml
vendored
20
.github/workflows/deploy.yml
vendored
@ -26,26 +26,19 @@ jobs:
|
||||
with:
|
||||
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
|
||||
uses: actions/configure-pages@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
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
|
||||
fi
|
||||
npm install @tailwindcss/typography
|
||||
|
||||
- name: Build with Next.js
|
||||
@ -69,4 +62,3 @@ jobs:
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user