From 772fff20fa3c0ae16f120da3c9002fc2fc75bf71 Mon Sep 17 00:00:00 2001 From: Vinayak Kulkarni Date: Sun, 5 Sep 2021 22:13:47 +0530 Subject: [PATCH] fix: update deploy script --- .github/workflows/deploy.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 669f8780..6e85e05d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,10 +14,23 @@ jobs: with: persist-credentials: false - - name: Install and Build 🔧 - run: | - npm install - npm run build-storybook + - name: Setup node env 📦 + uses: actions/setup-node@v2.4.0 + with: + node-version: ${{ matrix.node }} + check-latest: true + registry-url: https://registry.npmjs.org + cache: 'npm' + + + - name: Upgrade npm 🎉 + run: npm install -g npm@latest + + - name: Install dependencies 🚀 + run: npm ci --prefer-offline --no-audit --no-optional + + - name: Build Storybook 🔧 + run: npm run build-storybook - name: Deploy to GitHub Pages 🚀 uses: peaceiris/actions-gh-pages@v3.8.0