pull/148/head
xiaojunnuo 2024-07-26 22:01:42 +08:00
parent e97dfb456b
commit 3408465df6
4 changed files with 16 additions and 6 deletions

View File

@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: get_certd_version
id: get_certd_version
@ -33,6 +33,16 @@ jobs:
const pkg = JSON.parse(jsonContent)
console.log("certd_version:",pkg.version);
return pkg.version
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: |
npm install -g pnpm
pnpm install
npm run build
working-directory: ./packages/ui/certd-client
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

View File

@ -1 +1 @@
91
1

View File

@ -4,10 +4,10 @@ WORKDIR /workspace/
COPY . /workspace/
RUN npm install -g pnpm@8.15.7
RUN cd /workspace/certd-client && pnpm install && npm run build
#RUN cd /workspace/certd-client && pnpm install && npm run build
RUN cp /workspace/certd-client/dist/* /workspace/certd-server/public/ -rf
RUN cd /workspace/certd-server && pnpm install && npm run build-on-docker
RUN cp /workspace/certd-client/dist/* /workspace/certd-server/public/ -rf
FROM node:18-alpine
WORKDIR /app/

View File

@ -13,10 +13,10 @@ const list: any = [];
_.forEach(commonMocks, (value: any) => {
list.push(value.default);
});
_.forEach(apiMocks, (value) => {
_.forEach(apiMocks, (value: any) => {
list.push(value.default);
});
_.forEach(viewMocks, (value) => {
_.forEach(viewMocks, (value: any) => {
list.push(value.default);
});