From b5262fc469c49834bc009b5839efcdb22d54af76 Mon Sep 17 00:00:00 2001 From: Valerija Date: Wed, 31 Jan 2024 17:05:49 +0100 Subject: [PATCH] ci(update): adjust build-deploy workflow --- .github/workflows/build.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 156d57e..79aba3b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,6 +49,7 @@ jobs: - name: lint run: npm run lint + - name: test run: npm run test:lib-coverage - name: test report @@ -59,15 +60,8 @@ jobs: - name: build run: npm run build - deploy: - runs-on: ubuntu-latest - needs: build - permissions: - contents: write - - steps: - - name: deploy 🚀 - if: ${{ github.ref == 'refs/heads/master' }} + - name: deploy + if: ${{ success() && github.ref == 'refs/heads/master' }} uses: JamesIves/github-pages-deploy-action@v4 with: folder: dist/data-grid-demo