Sha256: 3cf1257fb7a175fe6842724bb2ea1af1eb18e1f88413de51d5597e62b259ff2f

Contents?: true

Size: 840 Bytes

Versions: 99

Compression:

Stored size: 840 Bytes

Contents

#!/usr/bin/env bash

set -e

if [[ -n $TRAVIS_TAG && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then
  echo "About to publish $TRAVIS_TAG to ajv-dist..."

  git config user.email "$GIT_USER_EMAIL"
  git config user.name "$GIT_USER_NAME"

  git clone https://${GITHUB_TOKEN}@github.com/epoberezkin/ajv-dist.git ../ajv-dist

  rm -rf ../ajv-dist/dist
  mkdir ../ajv-dist/dist
  cp ./dist/ajv.* ../ajv-dist/dist
  cat bower.json | sed 's/"name": "ajv"/"name": "ajv-dist"/' > ../ajv-dist/bower.json
  cd ../ajv-dist

  if [[ `git status --porcelain` ]]; then
    echo "Changes detected. Updating master branch..."
    git add -A
    git commit -m "updated by travis build #$TRAVIS_BUILD_NUMBER"
    git push --quiet origin master > /dev/null 2>&1
  fi

  echo "Publishing tag..."

  git tag $TRAVIS_TAG
  git push --tags > /dev/null 2>&1

  echo "Done"
fi

Version data entries

99 entries across 92 versions & 12 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/ajv/scripts/publish-built-version
disco_app-0.18.2 test/dummy/node_modules/ajv/scripts/publish-built-version
trusty-cms-5.0.6 node_modules/ajv/scripts/publish-built-version
trusty-cms-5.0.5 node_modules/ajv/scripts/publish-built-version
trusty-cms-5.0.4 node_modules/ajv/scripts/publish-built-version
disco_app-0.16.1 test/dummy/node_modules/ajv/scripts/publish-built-version
disco_app-0.15.2 test/dummy/node_modules/ajv/scripts/publish-built-version
trusty-cms-5.0.3 node_modules/ajv/scripts/publish-built-version
trusty-cms-5.0.2 node_modules/ajv/scripts/publish-built-version
disco_app-0.18.4 test/dummy/node_modules/ajv/scripts/publish-built-version
disco_app-0.18.1 test/dummy/node_modules/ajv/scripts/publish-built-version
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/ajv/scripts/publish-built-version
disco_app-0.14.0 test/dummy/node_modules/ajv/scripts/publish-built-version
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/ajv/scripts/publish-built-version
trusty-cms-5.0.1 node_modules/ajv/scripts/publish-built-version
trusty-cms-4.3.5 node_modules/ajv/scripts/publish-built-version
trusty-cms-5.0.0 node_modules/ajv/scripts/publish-built-version
trusty-cms-4.3.4 node_modules/ajv/scripts/publish-built-version
trusty-cms-4.3.3 node_modules/ajv/scripts/publish-built-version
trusty-cms-4.3.2 node_modules/ajv/scripts/publish-built-version