From 97a9a42ecb3d1b22fc37a7f9508f71852bedfafd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Rebours?= Date: Tue, 18 May 2021 16:57:53 +0200 Subject: [PATCH] simplify .gitlab-ci.yml --- .gitlab-ci.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4700697..558b895 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,4 @@ stages: - - lint - test - test-browser - deploy @@ -8,8 +7,6 @@ image: node:14 before_script: - echo "//registry.npmjs.org/:_authToken=${NPM_REGISTRY_TOKEN}" > .npmrc - - echo "@seald-io:registry=https://registry.npmjs.org/" >> .npmrc - - echo "@seald-io:always-auth=true" >> .npmrc - npm ci --cache .npm --prefer-offline cache: @@ -17,13 +14,11 @@ cache: paths: - .npm/ -lint: - stage: lint - script: npm run lint - test: stage: test - script: npm run test + script: + - npm run lint + - npm run test test-browser: image: nexus-docker.tardis.seald.io/seald/docker-browser-testing:CHROME_88 @@ -33,6 +28,7 @@ test-browser: deploy: stage: deploy script: + - npm run prepublishOnly - if (npx semver $CI_COMMIT_TAG --range '>0.0.0'); then NPM_TAG=latest; else NPM_TAG=beta; fi; # Using the fact that semver by default considers that pre-releases do not respect stable ranges - npm publish --tag=$NPM_TAG --access public only: