From fd49c2fd23cb7ac72539c014d9922d70e9d859f1 Mon Sep 17 00:00:00 2001 From: garronej Date: Sat, 15 Apr 2023 22:23:09 +0200 Subject: [PATCH] Add step to build storybook --- .github/workflows/ci.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f01635e8..4b1d7cb8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,6 +36,22 @@ jobs: - run: yarn test - run: yarn test:keycloakify-starter + storybook: + runs-on: ubuntu-latest + if: github.event_name == 'push' + needs: test + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '16' + - uses: bahmutov/npm-install@v1 + - run: yarn build-storybook -o ./build_storybook + - run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: npx -y -p gh-pages@3.1.0 gh-pages -d ./build_storybook -u "github-actions-bot " + check_if_version_upgraded: name: Check if version upgrade # When someone forks the repo and opens a PR we want to enables the tests to be run (the previous jobs)