From ee39c2f7e7657bfd32f5ea77d386988e8bc4eb28 Mon Sep 17 00:00:00 2001 From: Romullo Date: Sun, 6 Mar 2022 15:13:31 -0300 Subject: [PATCH] chore: cd to storybook --- .github/workflows/storybook.yml | 24 ++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/storybook.yml diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml new file mode 100644 index 0000000..e8cb7ca --- /dev/null +++ b/.github/workflows/storybook.yml @@ -0,0 +1,24 @@ +name: Build and Deploy +on: [push] +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Node + uses: actions/setup-node@v2-beta + with: + node-version: 16 + + - name: Install and Build + run: | + yarn + yarn sb:build + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4.2.5 + with: + branch: gh-pages + folder: storybook-static diff --git a/package.json b/package.json index 9a6a7a9..d568457 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "prebuild": "rimraf dist", "build": "rollup -c", "sb:server": "start-storybook -p 6006", - "sb:build": "npm run build-storybook", + "sb:build": "build-storybook", "sb:deploy": "gh-pages -d storybook-static", "test": "jest", "test:cov": "jest --coverage --watchAll",