feat: commit node_modules for offline CI/CD; skip npm ci, just npm run build
This commit is contained in:
parent
f013e4e883
commit
5532e9e3d9
9
.github/workflows/node.js.yml
vendored
9
.github/workflows/node.js.yml
vendored
@ -16,12 +16,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: Set .env Variables
|
||||||
run: |
|
run: |
|
||||||
echo "NEXT_PUBLIC_CATEGORIES_PER_CATEGORY_PAGE=${{ secrets.NEXT_PUBLIC_CATEGORIES_PER_CATEGORY_PAGE }}" >> .env
|
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_FRONT_URL=${{ secrets.NEXT_PUBLIC_FRONT_URL }}" >> .env.production
|
||||||
echo "NEXT_PUBLIC_BACK_URL=${{ secrets.NEXT_PUBLIC_BACK_URL }}" >> .env.production
|
echo "NEXT_PUBLIC_BACK_URL=${{ secrets.NEXT_PUBLIC_BACK_URL }}" >> .env.production
|
||||||
|
|
||||||
- run: npm ci
|
- run: npm run build
|
||||||
- run: npm run build --if-present
|
|
||||||
|
|
||||||
- name: Change Directory
|
- name: Change Directory
|
||||||
run: cd /home/parsaaghayi-front/actions-runner/_work/parsaaghayi-front/parsaaghayi-front
|
run: cd /home/parsaaghayi-front/actions-runner/_work/parsaaghayi-front/parsaaghayi-front
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
|||||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
|
# /node_modules
|
||||||
/.pnp
|
/.pnp
|
||||||
.pnp.js
|
.pnp.js
|
||||||
.yarn/install-state.gz
|
.yarn/install-state.gz
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user