diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 713d8643..7647cc2f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,8 +14,6 @@ stages: - deploy build: - tags: - - docker stage: build script: - npm run build @@ -56,6 +54,21 @@ routes: paths: - routes.md +package: + dependencies: + - build + tags: + - secrecy + stage: deploy + script: + - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc + - npm publish + only: + - /^v[0-9]+.[0-9]+.[0-9]+$/ + artifacts: + paths: + - lib + pages: stage: deploy script: