From 7d653201dd43a2fc17b4ef4613877efd55bf168b Mon Sep 17 00:00:00 2001 From: Cedric Nicoloso Date: Thu, 4 Jan 2024 19:46:09 +0100 Subject: [PATCH] =?UTF-8?q?Try=20first=20Github=20Actions=20workflow=20?= =?UTF-8?q?=F0=9F=92=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/default.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/default.yml diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml new file mode 100644 index 0000000..4fc22b9 --- /dev/null +++ b/.github/workflows/default.yml @@ -0,0 +1,38 @@ +name: default-ci + +on: + push: + branches-ignore: + - main + - develop + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + + - name: Install dependencies + run: npm ci + + - name: Check prettier + run: npm run check-format + + - name: Check types + run: npm run check-types + + - name: Vercel deploy to preview + env: + VERCEL_ORG_ID: team_qEUZmPwX3J0FFDAk23fSvIlq + VERCEL_PROJECT_ID: prj_Fp3PcYR1CrST2QwpLO2fEwJFXkdO + run: | + npm install --global vercel@canary + vercel pull --yes --scope i-exec --token ${{ secrets.VERCEL_TOKEN }} + VITE_APP_COMMIT=${GITHUB_SHA} vercel build --scope i-exec --token ${{ secrets.VERCEL_TOKEN }} + vercel deploy --prebuilt --scope i-exec --token ${{ secrets.VERCEL_TOKEN }}