# ..gitlab-ci.yml image: "node:latest" stages: - publish publish: stage: publish tags: - isup-test-docker variables: GIT_STRATEGY: clone before_script: - apt-get update && apt-get install git -y script: # Конфигурация npm - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc # # Конфигурация git # - git config --global user.email $GIT_USER_EMAIL; # - git config --global user.name $GIT_USER_NAME; # Установка зависимостей и сборка проекта - yarn - yarn compile # # Решение проблемы с циклическим вызовом # - commitMessage=$(git log -1 --pretty=%B) # - git commit --amend -m "[ci skip] ${commitMessage}" --no-verify # # # Публикация в gitlab # - git push --follow-tags test-ci:test-ci # Публикация в npm - npm publish --verbose only: - main