markdowny/.gitlab-ci.yml

23 lines
747 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
2021-02-04 05:25:02 +00:00
- if [ $CI_BUILD_BEFORE_SHA == "0000000000000000000000000000000000000000" ]; then npx commitlint --to=HEAD; else npx commitlint --from=$CI_BUILD_BEFORE_SHA; fi
2018-08-11 22:32:06 +00:00
# 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 --repository-url=https://oauth2:$GITLAB_TOKEN@gitlab.com/mfgames-writing/markdowny.git