提交 56616eec 作者: ZhangLingKun

hotfix(CI):修复自动构建

上级 55961f31
......@@ -17,10 +17,11 @@ pnpm-debug.log*
# Lock files
package-lock.json
yarn.lock
pnpm-lock.yaml*
yarn-lock.yaml*
package-lock.yaml*
package-lock.json*
#yarn.lock*
# Editor directories and files
.idea
......
......@@ -4,8 +4,8 @@ ENV PROFILES_ACTIVE=$PROFILES_ACTIVE
WORKDIR /app
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN \
if [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
elif [ -f yarn.lock ]; then yarn --frozen-lockfile; \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \
else echo "Lockfile not found." && exit 1; \
fi
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论