Skip to content
Snippets Groups Projects
Commit 7ea88f4e authored by ko_oler's avatar ko_oler
Browse files

Добавлена генерация файлов для frontend в Makefile и публикация npm-пакета

parent 079a25f3
No related branches found
No related tags found
1 merge request!1Добавлена генерация файлов для frontend в Makefile и публикацию npm-пакета
Pipeline #19105 failed with stage
in 1 minute
......@@ -13,7 +13,7 @@ publish_npm:
- apk add --update yarn
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
changes:
- config/package.json
script:
......@@ -22,6 +22,8 @@ publish_npm:
- mkdir config/dist
- make proto
- cd ./config
- NPM_PACKAGE_VERSION=$(node -p "require('./package.json').version")
- NPM_PACKAGE_NAME=$(node -p "require('./package.json').name")
- NPM_PACKAGE_CURRENT_VERSION=$(npm show ${NPM_PACKAGE_NAME} version)
- yarn pub
- echo "Successfully published version ${NPM_PACKAGE_VERSION} to GitLab's NPM registry"
\ No newline at end of file
- NPM_PACKAGE_VERSION=$(node -p "require('./package.json').version")
- echo "Successfully published version ${NPM_PACKAGE_VERSION} of ${NPM_PACKAGE_NAME} to GitLab's NPM registry"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment