File tree 2 files changed +35
-2
lines changed
2 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 8
8
concurrency : ${{ github.workflow }}-${{ github.ref }}
9
9
10
10
jobs :
11
+ ci :
12
+ name : CI
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout Repo
16
+ uses : actions/checkout@v3
17
+
18
+ - name : Setup pnpm
19
+ uses : pnpm/action-setup@v4
20
+ with :
21
+ run_install : false
22
+
23
+ - name : Setup node
24
+ uses : actions/setup-node@v4
25
+ with :
26
+ node-version : 20
27
+ cache : ' pnpm'
28
+
29
+ - name : Install dependencies
30
+ run : pnpm install
31
+
32
+ - name : Run lint
33
+ run : pnpm lint
34
+
35
+ - name : Build
36
+ run : pnpm build
37
+
38
+ - name : Run tests
39
+ run : pnpm test
40
+ env :
41
+ SQUARE_API_KEY : ${{ secrets.SQUARE_API_KEY }}
42
+
11
43
release :
12
44
name : Release
13
45
runs-on : ubuntu-latest
46
+ needs : ci
14
47
steps :
15
48
- name : Checkout Repo
16
49
uses : actions/checkout@v3
35
68
with :
36
69
publish : pnpm run release
37
70
env :
38
- SQUARE_API_KEY : ${{ secrets.SQUARE_API_KEY }}
39
71
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
72
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
41
73
Original file line number Diff line number Diff line change 8
8
"packageManager" : " pnpm@10.9.0" ,
9
9
"type" : " module" ,
10
10
"scripts" : {
11
- "release" : " pnpm lint && pnpm build && pnpm test && changeset publish" ,
11
+ "release" : " pnpm build && changeset publish" ,
12
12
"build" : " tsup ./src" ,
13
13
"check-types" : " tsc --noEmit" ,
14
14
"lint" : " biome check --write ." ,
15
+ "lint:ci" : " biome check ." ,
15
16
"test" : " node --test test/*.test.js"
16
17
},
17
18
"engines" : {
You can’t perform that action at this time.
0 commit comments