Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deploy script to push tags #261

Merged
merged 3 commits into from
Mar 5, 2020
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: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Changed
- [Build] Fix deploy script to push back converted tags; bump minor for canary builds. (#261)

## [4.2.0]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"bumpversion": "lerna version --no-git-tag-version --no-push",
"release": "lerna publish from-package",
"release:pre": "lerna publish --dist-tag=prerelease",
"release:canary": "lerna publish --canary --force-publish --exact",
"release:canary": "lerna publish --canary minor --force-publish --exact",
"ghpages": "lerna run ghpages",
"lint": "npm run lint:eslint && npm run lint:stylelint",
"lint:eslint": "eslint ./packages --ignore-path=configs/.eslintignore ./",
Expand Down
6 changes: 5 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ echo "Publishing ${TRAVIS_TAG}"

# convert lightweight tag to annotated tag so Lerna can use it
git tag -a -f -m "${TRAVIS_TAG}" "${TRAVIS_TAG}" "${TRAVIS_TAG}"
git push --force origin "${TRAVIS_TAG}"

# push back tags
git remote add tags-origin "https://ichefbot:${GH_TOKEN}@${GH_REPO}"
git push --force tags-origin "${TRAVIS_TAG}"
git remote remove tags-origin

# publish to npm
yarn release --yes --ignore-prepublish