generated from everton-dgn/boilerplate_astro_react
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (50 loc) · 1.48 KB
/
deploy-vercel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Production Deployment
env:
VERCEL_ORG_ID: ${{ secrets.ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.PROJECT_ID }}
LEFTHOOK: 0
on:
push:
branches:
- main
jobs:
Workflow:
runs-on: ubuntu-latest
steps:
# config_actions:
- name: Checkout Repository
uses: actions/checkout@v3
# setup_node:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
# install_dependencies:
- name: Install Dependencies
run: yarn install
# typecheck:
- name: Generate Astro Types
run: yarn sync
- name: Run Typescript Check
run: yarn typecheck
# lint:
- name: Run Lint
run: yarn lint
# test_ci:
- name: Run Tests
run: yarn test:ci --reporter=verbose
# build_deploy:
- name: Install Vercel CLI
run: yarn global add vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
# release:
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release