提交 d7a30744 编写于 作者: 李少辉-开发者's avatar 李少辉-开发者 🎧

更新.gitlab-ci.yml文件

上级 9b11b42a
# This file is a template, and might need editing before it works on your project.
default:
image: node:latest
# Validate that the repository contains a package.json and extract a few values from it.
before_script:
- |
if [[ ! -f package.json ]]; then
echo "No package.json found! A package.json file is required to run npm build"
exit 1
fi
- echo "current version is :"
- echo $(node -p "require('./package.json').version")
install:
stage: build
script:
- npm install
compile:
stage: build
script:
- npm run build
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册