ci: fix build

pull/6813/head
NGPixel 1 year ago
parent dadfae402f
commit 2c8f9f8e30
No known key found for this signature in database
GPG Key ID: B755FB6870B30F63

@ -46,13 +46,13 @@ jobs:
- name: Build Assets
working-directory: ux
run: |
pnpm install
pnpm install --frozen-lockfile --shamefully-hoist
pnpm build
- name: Build Blocks
working-directory: blocks
run: |
pnpm install
pnpm install --frozen-lockfile
pnpm build
- name: Login to GitHub Container Registry

@ -14,6 +14,8 @@ RUN mkdir -p /wiki && \
mkdir -p /logs && \
mkdir -p /wiki/data/content && \
chown -R node:node /wiki /logs
RUN corepack enable && \
corepack prepare pnpm@latest --activate
WORKDIR /wiki
@ -28,7 +30,7 @@ USER node
ENV NODE_ENV=production
WORKDIR /wiki/server
RUN npm ci --foreground-scripts --omit=dev --audit=false --fund=false
RUN pnpm install --prod --frozen-lockfile
WORKDIR /wiki

@ -2,4 +2,3 @@ audit = false
fund = false
save-exact = true
save-prefix = ""
shamefully-hoist = true

@ -90,8 +90,6 @@ module.exports = configure(function (ctx) {
distDir: '../assets',
extendViteConf (viteConf) {
viteConf.resolve.preserveSymlinks = true
if (ctx.prod) {
viteConf.build.assetsDir = '_assets'
viteConf.build.rollupOptions = {

Loading…
Cancel
Save