Update build_docker.yml

This commit is contained in:
fit2cloud-chenyw
2025-05-06 11:32:10 +08:00
committed by GitHub
parent fba515b92b
commit 72ccedeb6d
+3 -3
View File
@@ -1,7 +1,7 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
name: build_docker CI
on:
workflow_dispatch:
@@ -27,15 +27,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: To frontend
run: cd ./frontend
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install and build
run: |
cd ./frontend
npm install
npm run build
cp -r ./dist ../backend/