mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
improve tag script
This commit is contained in:
parent
238f6e7ce9
commit
a1a9f33dae
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ $TRAVIS_BRANCH == "master" ]]; then
|
if [[ $TRAVIS_BRANCH == "master" ]]; then
|
||||||
TAG_VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g')
|
VERSION=$(npm view @alfresco/adf-core@beta version)
|
||||||
else
|
else
|
||||||
TAG_VERSION=$(npm view @alfresco/adf-core@beta version)
|
VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g')
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
echo "git tag -a ${VERSION} -m ${VERSION}"
|
echo "git tag -a ${VERSION} -m ${VERSION}"
|
||||||
@ -11,6 +11,6 @@ git config --local user.name "alfresco-build"
|
|||||||
git config --local user.email "build@alfresco.com"
|
git config --local user.email "build@alfresco.com"
|
||||||
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
|
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
|
||||||
git remote rm origin
|
git remote rm origin
|
||||||
GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-ng2-components.git
|
GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-js-api.git
|
||||||
git remote add origin $GITHUB_REPO
|
git remote add origin $GITHUB_REPO
|
||||||
git push origin --tags
|
git push origin --tags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user