From 96b569766c4f96bcd908eb8f7a45dd593e0111ed Mon Sep 17 00:00:00 2001 From: Leifer Mendez Date: Wed, 28 Dec 2022 20:58:17 +0100 Subject: [PATCH] docs: :fire: added netlify --- .github/workflows/netlify.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/netlify.yml b/.github/workflows/netlify.yml index 472e2b2..a27e80f 100644 --- a/.github/workflows/netlify.yml +++ b/.github/workflows/netlify.yml @@ -7,9 +7,31 @@ on: - main types: [closed] jobs: - build: - runs-on: ubuntu-18.04 + ############ BUILD PACKAGE ############ + build-package: + name: Build Package + runs-on: ubuntu-latest + needs: + - test-unit steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: 'yarn' + registry-url: https://registry.npmjs.org/ + + - run: corepack enable + + - name: Install NPM Dependencies + run: yarn install --immutable --network-timeout 300000 + + - name: Build Package + run: cd ./packages/docs/ && npm run build + - uses: actions/checkout@v2 - name: Deploy to Netlify