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: ...@@ -13,7 +13,7 @@ publish_npm:
- apk add --update yarn - apk add --update yarn
rules: rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
changes: changes:
- config/package.json - config/package.json
script: script:
...@@ -22,6 +22,8 @@ publish_npm: ...@@ -22,6 +22,8 @@ publish_npm:
- mkdir config/dist - mkdir config/dist
- make proto - make proto
- cd ./config - 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 - yarn pub
- echo "Successfully published version ${NPM_PACKAGE_VERSION} to GitLab's NPM registry" - NPM_PACKAGE_VERSION=$(node -p "require('./package.json').version")
\ No newline at end of file - 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