From b2ed9daadac9512f8651b62dfe5df320d2ad5535 Mon Sep 17 00:00:00 2001 From: axleiro <83293196+axleiro@users.noreply.github.com> Date: Thu, 9 Dec 2021 17:00:33 +0530 Subject: [PATCH] updating explorer_preview.yml it deploy preview on vercel --- .github/workflows/explorer_preview.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/explorer_preview.yml b/.github/workflows/explorer_preview.yml index b0a6f1f5dc..9f8a6cede8 100644 --- a/.github/workflows/explorer_preview.yml +++ b/.github/workflows/explorer_preview.yml @@ -9,9 +9,21 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - - uses: actions/checkout@v2 - - uses: amondnet/vercel-action@v20 - with: + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} + - uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'npm' + cache-dependency-path: explorer/package-lock.json + - run: npm i -g npm@7 + - run: npm ci + - run: npm run format + - run: npm run build + - run: npm run test + - uses: amondnet/vercel-action@v20 + with: vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required github-token: ${{ secrets.GITHUB_TOKEN }} #Optional vercel-org-id: ${{ secrets.ORG_ID}} #Required