Skip to content

Commit 0de90b0

Browse files
authored
Update azure-webapps-node.yml
1 parent 38cb1da commit 0de90b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/azure-webapps-node.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ jobs:
3232

3333
- name: Prepare production deployment
3434
run: |
35-
# Create deployment directory structure
35+
# Create deployment directory
3636
mkdir -p deployment
3737
38-
# Copy built application files
38+
# Copy built files
3939
cp -r dist/* deployment/
4040
41-
# Create a production package.json with serve as dependency
41+
# Create optimized package.json for production
4242
cat > deployment/package.json << 'EOF'
4343
{
4444
"name": "porfolio-production",
@@ -61,10 +61,10 @@ jobs:
6161
cd deployment
6262
npm install --only=production --no-optional
6363
64-
# Verify serve is installed
65-
ls -la node_modules/.bin/
64+
# Verify serve installation
6665
echo "Checking serve installation:"
67-
npx serve --version || echo "Serve not found via npx"
66+
ls -la node_modules/.bin/ | grep serve || echo "serve binary not found"
67+
./node_modules/.bin/serve --version || echo "serve version check failed"
6868
6969
- name: Upload artifact
7070
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)