image: node:latest .tag_template: &tag_config tags: - front-end build: stage: build <<: *tag_config cache: key: node-modules-$CI_COMMIT_REF_SLUG paths: - node_modules artifacts: name: $CI_PROJECT_NAME-$CI_PIPELINE_ID.build paths: - dist before_script: - export NODE_OPTIONS=--openssl-legacy-provider - npm i --registry=https://registry.npmmirror.com script: - npm run build publish: stage: deploy before_script: - npm config set //10.30.0.176:4873/:_authToken $NPM_TOKEN <<: *tag_config only: - tags dependencies: - build retry: 1 variables: NPM_TOKEN: $NPM_TOKEN environment: name: vue-bimface url: http://10.30.0.176:4873/-/web/detail/vue-bimface script: - echo "start publish" - npm publish --registry http://10.30.0.176:4873/ - echo "publish success"