markdowny/.gitlab-ci.yml

23 lines
552 B
YAML
Raw Normal View History

2018-08-11 22:32:06 +00:00
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
2021-02-04 05:19:34 +00:00
- yarn install --frozen-lockfile
2018-08-11 22:32:06 +00:00
- npx commitlint --from=master to=CI_BUILD_REF_NAME
# Build the project
2021-02-04 05:19:34 +00:00
- yarn run build
2018-08-11 22:32:06 +00:00
# Perform the automatic release process
- npx semantic-release