An error occurred while loading the file. Please try again.
-
litneet64 authored26e4a1ff
This GitLab CI configuration is valid.
Learn more
image: node:latest
# cache files on this folder for subsequent builds
cache:
paths:
- lit-element-ts-tsc/node_modules/
# check typescript after merge requests to master and changes to lit-element dir have been done
check-ts:
script:
- cd lit-element-ts-tsc/
- npm install
- npm run build
rules:
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
changes:
- lit-element-ts-tsc/*
# build after a push to master has been done (required for pipeline badge)
build-ts:
script:
- cd lit-element-ts-tsc/
- npm install
- npm run build
rules:
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "master"'