Skip to content
Snippets Groups Projects
Select Git revision
  • b2ced9ad76eb76fb33162107a032ea17363bf159
  • master default protected
  • feature/3149-LocaleCodeAsID-Implementation
  • feature/PRXS-3383-CollectionsRankSortAPI
  • fix/PRXS-3401-ValidateValidationOpts
  • feature/3149-LocaleCodeAsID-Feature
  • feature/PRXS-3383-CollectionsSort
  • feature/3109-SerializeFeature
  • release/0.33
  • feature/3109-RecoverySchema
  • feature/3109-feature
  • fix/PRXS-3369-ValidateFields
  • refactor/PRXS-3306-MovePkgGroup1
  • refactor/6-pkg-refactor-expr
  • fix/PRXS-3360-TemplateBuilderPatch
  • feature/3293-MongoV2
  • feature/3272-GoVersionUp
  • feature/PRXS-3218-HideTemplateActions
  • feature/PRXS-3234-PruneIdents
  • feature/3146-UpdateItemStorageInterface
  • feature/3274-ObjectIndexesFixes
  • v0.33.1
  • v0.32.0
  • v0.31.1
  • v0.31.0
  • v0.30.0
  • v0.29.0
  • v0.28.0
  • v0.27.0-alpha.1+16
  • v0.27.0-alpha.1+15
  • v0.27.0-alpha.1+14
  • v0.27.0-alpha.1+13
  • v0.27.0-alpha.1+12
  • v0.27.0-alpha.1+11
  • v0.27.0-alpha.1+10
  • v0.27.0-alpha.1+9
  • v0.27.0-alpha.1+8
  • v0.27.0-alpha.1+7
  • v0.27.0-alpha.1+6
  • v0.27.0-alpha.1+5
  • v0.27.0-alpha.1+4
41 results

locale.go

Blame
  • .gitlab-ci.yml 1.74 KiB
    publish_npm:
      image: "node:current-alpine"
      stage: publish-npm
      before_script:
        - apk add --update yarn
        - apk add --update jq
        - apk add --update rsync
      rules:
        - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
          changes:
            - clients/**/*
      script:
        - cd ./config
        - 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 '*.js' --exclude '*' ../../clients ./
        - rsync -a --prune-empty-dirs --include '*/' --include '*.js.map' --exclude '*' ../../clients ./
        - |
          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 "@${CI_PROJECT_ROOT_NAMESPACE}:registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/"
              echo "${CI_API_V4_URL#http*:}/packages/npm/:_authToken=\${CI_JOB_TOKEN}"
              echo "${CI_API_V4_URL#http*:}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=\${CI_JOB_TOKEN}"
            } >> .npmrc
          fi
        - NPM_PACKAGE_NAME=$(node -p "require('./package.json').name")
        - 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
        - npm version patch
        - yarn pub
        - 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"
        - rm -rf ./clients