-
Notifications
You must be signed in to change notification settings - Fork 24
91 lines (89 loc) · 3.32 KB
/
ci.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
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
name: CI
on: [pull_request, push, workflow_dispatch]
jobs:
ci:
name: CI
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Setup
uses: DerYeger/pnpm-setup-action@master
with:
node-version-file: .node-version
- name: Lint package versions
run: pnpm run syncpack:lint
- name: Build, Lint, Test, and Typecheck
run: pnpm run ci
- name: Upload @yeger/debounce coverage
uses: codecov/codecov-action@v3
with:
files: packages/debounce/coverage/coverage-final.json
flags: debounce
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload @yeger/fol coverage
uses: codecov/codecov-action@v3
with:
files: packages/fol/coverage/coverage-final.json
flags: fol
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload @yeger/vue-masonry-wall coverage
uses: codecov/codecov-action@v3
with:
files: packages/vue-masonry-wall/coverage/coverage-final.json
flags: vue-masonry-wall
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload @yeger/vue2-masonry-wall coverage
uses: codecov/codecov-action@v3
with:
files: packages/vue2-masonry-wall/coverage/coverage-final.json
flags: vue2-masonry-wall
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload d3-graph-controller coverage
uses: codecov/codecov-action@v3
with:
files: packages/d3-graph-controller/coverage/coverage-final.json
flags: d3-graph-controller
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload resumon coverage
uses: codecov/codecov-action@v3
with:
files: packages/resumon/coverage/coverage-final.json
flags: resumon
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload vecti coverage
uses: codecov/codecov-action@v3
with:
files: packages/vecti/coverage/coverage-final.json
flags: vecti
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload vite-plugin-ssg-utils coverage
uses: codecov/codecov-action@v3
with:
files: packages/vite-plugin-ssg-utils/coverage/coverage-final.json
flags: vite-plugin-ssg-utils
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload vue-marmoset-viewer coverage
uses: codecov/codecov-action@v3
with:
files: packages/vue-marmoset-viewer/coverage/coverage-final.json
flags: vue-marmoset-viewer
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload vue-marmoset-viewer coverage
uses: codecov/codecov-action@v3
with:
files: packages/vue-persistent-storage-manager/coverage/coverage-final.json
flags: vue-persistent-storage-manager
token: ${{ secrets.CODECOV_TOKEN }}
- name: Release
uses: changesets/action@v1
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
version: pnpm run version
publish: pnpm exec changeset publish
commit: 'chore: release'
title: 'chore: release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}