summaryrefslogtreecommitdiffstats
path: root/node_modules/ajv/scripts/publish-built-version
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/ajv/scripts/publish-built-version
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/ajv/scripts/publish-built-version')
-rw-r--r--node_modules/ajv/scripts/publish-built-version32
1 files changed, 0 insertions, 32 deletions
diff --git a/node_modules/ajv/scripts/publish-built-version b/node_modules/ajv/scripts/publish-built-version
deleted file mode 100644
index 1b57123..0000000
--- a/node_modules/ajv/scripts/publish-built-version
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/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/ajv-validator/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