-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try first Github Actions workflow 💪
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |