Skip to content
Snippets Groups Projects
Commit 1a5cac0d authored by ko_oler's avatar ko_oler
Browse files

fix

parent 8b7f3fd9
No related branches found
No related tags found
2 merge requests!2test,!1Добавлена генерация файлов для frontend в Makefile и публикацию npm-пакета
Pipeline #18987 failed with stage
in 14 seconds
...@@ -14,11 +14,11 @@ publish_npm: ...@@ -14,11 +14,11 @@ publish_npm:
- clients/**/* - clients/**/*
script: script:
- cd ./config - cd ./config
- ls
- rsync -a --prune-empty-dirs --include '*/' --include '*.d.ts' --exclude '*' ../clients ./ - rsync -a --prune-empty-dirs --include '*/' --include '*.d.ts' --exclude '*' ../clients ./
- rsync -a --prune-empty-dirs --include '*/' --include '*.d.ts.map' --exclude '*' ../clients ./ - rsync -a --prune-empty-dirs --include '*/' --include '*.d.ts.map' --exclude '*' ../clients ./
- rsync -a --prune-empty-dirs --include '*/' --include '*.js' --exclude '*' ../clients ./ - rsync -a --prune-empty-dirs --include '*/' --include '*.js' --exclude '*' ../clients ./
- rsync -a --prune-empty-dirs --include '*/' --include '*.js.map' --exclude '*' ../clients ./ - rsync -a --prune-empty-dirs --include '*/' --include '*.js.map' --exclude '*' ../clients ./
- ls
- | - |
if [[ ! -f .npmrc ]]; then if [[ ! -f .npmrc ]]; then
echo 'No .npmrc found! Creating one now. Please review the following link for more information: https://docs.gitlab.com/ee/user/packages/npm_registry/index.html#project-level-npm-endpoint-1' echo 'No .npmrc found! Creating one now. Please review the following link for more information: https://docs.gitlab.com/ee/user/packages/npm_registry/index.html#project-level-npm-endpoint-1'
...@@ -28,6 +28,7 @@ publish_npm: ...@@ -28,6 +28,7 @@ publish_npm:
echo "${CI_API_V4_URL#http*:}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=\${CI_JOB_TOKEN}" echo "${CI_API_V4_URL#http*:}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=\${CI_JOB_TOKEN}"
} >> .npmrc } >> .npmrc
fi fi
- cat ./.npmrc
- NPM_PACKAGE_NAME=$(node -p "require('./package.json').name") - NPM_PACKAGE_NAME=$(node -p "require('./package.json').name")
- NPM_PACKAGE_CURRENT_VERSION=$(npm show ${NPM_PACKAGE_NAME} version) - NPM_PACKAGE_CURRENT_VERSION=$(npm show ${NPM_PACKAGE_NAME} version)
- echo -E "$(jq --arg version $NPM_PACKAGE_CURRENT_VERSION '.version = $version' package.json)" > package.json - echo -E "$(jq --arg version $NPM_PACKAGE_CURRENT_VERSION '.version = $version' package.json)" > package.json
......
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