Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ branches:
- /^v.*$/ # Ensure to build release tags of format v1.0.0-1

stages:
- test
- name: test
if: tag IS NOT present
- name: publish
if: tag IS present # https://docs.travis-ci.com/user/conditions-v1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! 🙂


Expand Down
5 changes: 3 additions & 2 deletions scripts/tagBranchForRelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ fi
echo "getting latest"
git pull
PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
git tag $PACKAGE_VERSION
git push origin $PACKAGE_VERSION
TAG="v${PACKAGE_VERSION}"
git tag $TAG
git push origin $TAG