-
Notifications
You must be signed in to change notification settings - Fork 1
110 lines (82 loc) · 3.05 KB
/
ci.yaml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Continous Integration
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- 'docs/**'
- '.changeset/**'
- '.github/**'
branches-ignore:
- main
# - next
push:
paths-ignore:
- 'docs/**'
- '.changeset/**'
- '.github/**'
branches:
- main
- next
concurrency: ${{ github.workflow }}-${{ github.ref }}
env: { CI: true, FORCE_COLOR: true }
# NOT WORKING
# permissions:
# pull-requests: write
# ==============================================================================
jobs:
ci:
name: Continous Integration
timeout-minutes: 15
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0
# ========================================================================
# - name: Setup Turbo
# uses: JulianCataldo/gh-actions/turbo@main
- name: Setup Node + PNPM
uses: JulianCataldo/gh-actions/node-pnpm@main
# ========================================================================
# - name: Linting
# uses: JulianCataldo/gh-actions/linting@main
# ========================================================================
# - name: Build the whole mono-repo. packages
# run: 'pnpm run build'
# ========================================================================
# - name: Unit tests — Vitest
# run: pnpm run test
# ========================================================================
# - name: Build demo website
# run: 'pnpm run build:demo'
# ========================================================================
# - name: Deploy to Vercel
# uses: JulianCataldo/gh-actions/vercel@main
# id: vercel-deploy
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
# VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
# ========================================================================
# - name: Output URL
# run: echo ${{steps.vercel-deploy.outputs.PREVIEW_URL}}
# - uses: JulianCataldo/gh-actions/playwright@main
# name: E2E tests — Playwright
# with: { PREVIEW_URL: '${{steps.vercel-deploy.outputs.PREVIEW_URL}}' }
# ========================================================================
- uses: JulianCataldo/gh-actions/release@main
if: github.ref == 'refs/heads/main'
name: Releases
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# ========================================================================
- name: Merge [main] back to [next] branch
if: github.ref == 'refs/heads/main'
run: |
git checkout next && \
git merge main && git push && git checkout main