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

⚠️ [DO NOT MERGE] Carbon v10 - legacy branch #1368

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -5,7 +5,8 @@
<h3 align="center">Carbon Charts</h3>
<p align="center">
A reusable framework-agnostic D3 charting library.
<br /><br />
<br />
<br />
<a href="https://www.npmjs.com/package/@carbon/charts">
<img src="https://img.shields.io/npm/v/@carbon/charts.svg" />
</a>
Expand Down
30 changes: 15 additions & 15 deletions scripts/deploy.sh
Expand Up @@ -2,29 +2,29 @@

set -e # exit with nonzero exit code if anything fails

# Git user info configs
git config --global user.email "carbon@us.ibm.com"
git config --global user.name "carbon-bot"
# # Git user info configs
# git config --global user.email "carbon@us.ibm.com"
# git config --global user.name "carbon-bot"

# Add github token to git credentials
git config credential.helper "store --file=.git/credentials"
echo "https://${GH_TOKEN}:@github.com" > .git/credentials 2>/dev/null
# # Add github token to git credentials
# git config credential.helper "store --file=.git/credentials"
# echo "https://${GH_TOKEN}:@github.com" > .git/credentials 2>/dev/null

echo "Publish to Github"
git stash
# echo "Publish to Github"
# git stash

# checkout master to get out of detached HEAD state
git checkout master
# # checkout master to get out of detached HEAD state
# git checkout master

lerna version --conventional-commits --yes --force-publish --create-release github
lerna version --preid latest-carbon-v10-legacy --no-push

echo "Publish to NPM"

yarn build
# # yarn build

# authenticate with the npm registry
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN -q
# # # authenticate with the npm registry
# # npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN -q

node scripts/add-telemetry-to-packages.js

lerna publish from-git --yes --force-publish --contents dist
lerna publish from-package --yes --force-publish --contents dist --dist-tag latest-carbon-v10-legacy