Skip to content

Commit

Permalink
chore: #131 migrate elements github page
Browse files Browse the repository at this point in the history
  • Loading branch information
trankhacvy committed Feb 6, 2020
1 parent 152c06a commit b4046b9
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/release-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,54 @@ jobs:
- name: Release Develop
run: |
yarn release:dev --since origin/master^1 --parallel
deploy_story_book:
runs-on: ubuntu-latest
steps:
- name: checks out repository to $GITHUB_WORKSPACE
uses: actions/checkout@v1

- name: Setup Node Environement
uses: actions/setup-node@v1
with:
node-version: '10.x'

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Set up workspace experimental
run: |
yarn config set workspaces-experimental true
- name: Install dependencies
run: |
yarn
- name: Lint
run: |
yarn lint
- name: Fetch config
run: |
yarn fetch-config
- name: Build storybook
run: |
yarn build-storybook --since origin/master^1 --parallel
- name: deploy story book to GH pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: $GITHUB_TOKEN
BASE_BRANCH: master # The branch the action should deploy from.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: out # The folder the action should deploy.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"private": true,
"scripts": {
"build": "lerna run build:prod --parallel",
"test": "lerna run test:ci --parallel",
"lint": "eslint --ext=jsx,ts,tsx packages --fix",
"build-storybook": "lerna run build-storybook --parallel",
"fetch-config": "yarn config-manager getSecret reapit-marketplace-app-config",
"lint": "eslint --ext=jsx,ts,tsx packages --fix",
"release:dev": "lerna run release:dev --parallel",
"release:prod": "lerna run release:prod --parallel",
"test": "lerna run test:ci --parallel",
"test-e2e:ci": "lerna run test-e2e:ci --parallel"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"module": "dist/elements.esm.js",
"typings": "dist/index.d.ts",
"scripts": {
"build-storybook": "build-storybook -o out",
"build:prod": "rimraf dist && cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd && rollup -c",
"start:dev": "start-storybook -p 6006",
"start:prod": "cross-env NODE_ENV=development tsdx watch",
Expand Down

0 comments on commit b4046b9

Please sign in to comment.