From 5532e9e3d90bbe4f42395311962f5bed0df696cd Mon Sep 17 00:00:00 2001
From: parsa aghaei
Date: Sun, 28 Jun 2026 17:38:14 +0330
Subject: [PATCH] feat: commit node_modules for offline CI/CD; skip npm ci,
just npm run build
---
.github/workflows/node.js.yml | 9 +--------
.gitignore | 1 +
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
index 54ecdef..77d8c63 100644
--- a/.github/workflows/node.js.yml
+++ b/.github/workflows/node.js.yml
@@ -16,12 +16,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v4
- with:
- node-version: ${{ matrix.node-version }}
- cache: 'npm'
-
- name: Set .env Variables
run: |
echo "NEXT_PUBLIC_CATEGORIES_PER_CATEGORY_PAGE=${{ secrets.NEXT_PUBLIC_CATEGORIES_PER_CATEGORY_PAGE }}" >> .env
@@ -37,8 +31,7 @@ jobs:
echo "NEXT_PUBLIC_FRONT_URL=${{ secrets.NEXT_PUBLIC_FRONT_URL }}" >> .env.production
echo "NEXT_PUBLIC_BACK_URL=${{ secrets.NEXT_PUBLIC_BACK_URL }}" >> .env.production
- - run: npm ci
- - run: npm run build --if-present
+ - run: npm run build
- name: Change Directory
run: cd /home/parsaaghayi-front/actions-runner/_work/parsaaghayi-front/parsaaghayi-front
diff --git a/.gitignore b/.gitignore
index d221d4b..0a7bd88 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
+# /node_modules
/.pnp
.pnp.js
.yarn/install-state.gz