From 1df12131fc60005a0c469a94e02035aa9a24782c Mon Sep 17 00:00:00 2001 From: Tamara Steinwender <tamara.steinwender@tugraz.at> Date: Mon, 21 Dec 2020 14:19:24 +0100 Subject: [PATCH] Add inting --- .gitlab-ci.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 38df26d8..bba1dff1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,21 +16,13 @@ test: - yarn install - yarn run test -publish: - stage: deploy - only: - refs: - - deploy - - master +linting: + stage: test + allow_failure: true script: - # https://www.npmjs.com/settings/dbp-deploy/tokens - # NPM_TOKEN needs to be a "Publish" token with 2FA disabled! - # "Automation" tokens don't work with lerna (even if they would work with "npm publish") - - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc - - yarn config set cache-folder "$CI_PROJECT_DIR/_yarn_cache" - yarn install - - yarn run build - - yarn run publish + - yarn run lint + .deploy_defaults: &deploy_defaults except: -- GitLab