markdowny/.gitlab-ci.yml
2018-08-11 17:32:06 -05:00

23 lines
527 B
YAML

image: node:latest
stages:
- publish
publish:
stage: publish
script:
# Remove the references so it builds cleanly.
- apt-get update
- apt-get install jq -y
- "cat tsconfig.json | jq 'del(.references)' > a && mv a tsconfig.json"
# Make sure the commits are clean
- npm ci
- npx commitlint --from=master to=CI_BUILD_REF_NAME
# Build the project
- npm run build
# Perform the automatic release process
- npx semantic-release