forked from storybookjs/storybook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,11 +44,10 @@ | |
"main": "n/a", | ||
"scripts": { | ||
"build-storybook": "build-storybook", | ||
"build": "gatsby build && cp static/* .travis.yml ./public", | ||
"deploy": "gh-pages -t -r [email protected]:storybooks/storybooks.github.io.git -d public -o origin -b master", | ||
"deploy-travis": "gh-pages -t -r https://${GH_TOKEN}@github.com/storybooks/storybooks.github.io.git -d public -o origin -b master", | ||
"develop": "gatsby develop", | ||
"storybook": "start-storybook -p 9009 -s pages", | ||
"lint": "remark . # -- -o to update" | ||
"build": "gatsby build && cp static/* .travis.yml ./dist", | ||
"deploy:manual": "gh-pages -t -r [email protected]:storybooks/storybook.git -d dist -o origin -b gh-pages-test", | ||
"deploy:ci": "gh-pages -t -r https://${GH_TOKEN}@github.com/storybooks/storybook.git -d dist -o origin -b gh-pages-test", | ||
"dev": "gatsby develop", | ||
"storybook": "start-storybook -p 9009 -s pages" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,10 +49,10 @@ | |
"test": "jest", | ||
"test:watch": "npm test -- --watch", | ||
"coverage": "codecov", | ||
"build:docs": "cd docs && gatsby build && cp static/* .travis.yml ./public", | ||
"deploy": "#gh-pages -t -r [email protected]:storybooks/storybook.git -d public -o origin -b docs", | ||
"deploy-travis": "#gh-pages -t -r https://${GH_TOKEN}@github.com/storybooks/storybook.git -d public -o origin -b docs", | ||
"dev:docs": "gatsby develop" | ||
"docs:build": "cd docs && npm run build", | ||
"docs:deploy:manual": "cd docs && npm run deploy:manual", | ||
"docs:deploy:ci": "cd docs && npm run deploy:ci", | ||
"docs:dev": "cd docs && npm run dev" | ||
}, | ||
"collective": { | ||
"type": "opencollective", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then | ||
if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then | ||
echo "We are in a pull request, not releasing" | ||
exit 0 | ||
fi | ||
|
||
if [[ $TRAVIS_BRANCH == 'master' ]]; then | ||
# npm run semantic-release | ||
# setup git user | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Travis CI" | ||
|
||
# deploy documentation to github-pages | ||
npm run docs:build | ||
npm run docs:deploy:ci | ||
fi |