From 53c8f423b85747be2e7d6655fdcb7dc5f9e900dd Mon Sep 17 00:00:00 2001 From: Ginie Date: Sat, 5 Aug 2023 19:36:43 +0200 Subject: [PATCH] chore: gh workflow --- .github/workflows/ci.js.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.js.yml diff --git a/.github/workflows/ci.js.yml b/.github/workflows/ci.js.yml new file mode 100644 index 00000000..2166fadd --- /dev/null +++ b/.github/workflows/ci.js.yml @@ -0,0 +1,32 @@ +# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: CI + +on: + push: + branches: + - "main" + +jobs: + prepare: + name: Prepare the environment + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'yarn' + - name: Install dependencies 📦 + run: yarn install --frozen-lockfile + - name: Download nw-data 📥 + run: yarn nw-cdn download + + build: + runs-on: ubuntu-latest + needs: prepare + + steps: + - name: Build Storybook + run: yarn storybook:build