Skip to content

Commit

Permalink
Try first Github Actions workflow 💪
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric25 committed Jan 4, 2024
1 parent 7faf395 commit 7d65320
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 7d65320

Please sign in to comment.