ci: fix publish (#775)

This commit is contained in:
Trim21
2024-08-10 05:03:24 +08:00
committed by GitHub
parent 679af7ffb7
commit ee5f8372db
2 changed files with 9 additions and 7 deletions

View File

@@ -20,8 +20,10 @@ WORKDIR /usr/src/app/
# Copy project files # Copy project files
COPY . ./ COPY . ./
RUN corepack enable && corepack install
# Fetch dependencies from npm # Fetch dependencies from npm
RUN pnpm install --frozen-lockfile --legacy-peer-deps RUN pnpm install --frozen-lockfile
# Build assets # Build assets
RUN npm run build RUN npm run build

View File

@@ -40,12 +40,12 @@
"dist/geoip-country6.dat" "dist/geoip-country6.dat"
], ],
"targets": [ "targets": [
"node20-linuxstatic-x64", "node18-linuxstatic-x64",
"node20-linuxstatic-arm64", "node18-linuxstatic-arm64",
"node20-macos-x64", "node18-macos-x64",
"node20-macos-arm64", "node18-macos-arm64",
"node20-win-x64", "node18-win-x64",
"node20-win-arm64" "node18-win-arm64"
] ]
}, },
"scripts": { "scripts": {