ci: fix existing deployment

This commit is contained in:
鲁树人 2023-06-10 21:49:00 +01:00
parent 06a99271f1
commit 1976c34e7a
3 changed files with 7 additions and 4 deletions

View File

@ -8,7 +8,8 @@ steps:
image: node:18.16.0-bullseye image: node:18.16.0-bullseye
commands: commands:
# - git config --global --add safe.directory "/drone/src" # - git config --global --add safe.directory "/drone/src"
- npm install -g pnpm - corepack enable
- corepack prepare pnpm@latest --activate
- pnpm i --frozen-lockfile - pnpm i --frozen-lockfile
- pnpm build - pnpm build
environment: environment:

View File

@ -79,4 +79,6 @@ deploy_netlify() {
if [[ -n "${NETLIFY_API_KEY}" && -n "${NETLIFY_SITE_ID}" ]]; then if [[ -n "${NETLIFY_API_KEY}" && -n "${NETLIFY_SITE_ID}" ]]; then
echo "Deploy to netlify..." echo "Deploy to netlify..."
deploy_netlify um-react.zip deploy_netlify um-react.zip
else
echo "skip netlify deployment."
fi fi

View File

@ -1,4 +1,4 @@
#!/bin/env node #!/usr/bin/env node
/* eslint-env node */ /* eslint-env node */
import fs from 'fs'; import fs from 'fs';