File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
8
+
9
+ env :
10
+ PNPM_VERSION : 10.4.1
11
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
12
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
13
+
14
+ jobs :
15
+ build :
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - name : Checkout repository
20
+ uses : actions/checkout@v3
21
+
22
+ - name : Setup Node.js
23
+ uses : actions/setup-node@v3
24
+ with :
25
+ node-version : 20
26
+
27
+ - name : Install pnpm
28
+ uses : pnpm/action-setup@v2
29
+ with :
30
+ version : ${{ env.PNPM_VERSION }}
31
+
32
+ - name : Get pnpm store directory
33
+ shell : bash
34
+ run : |
35
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
36
+
37
+ - name : Setup pnpm cache
38
+ uses : actions/cache@v4
39
+ with :
40
+ path : ${{ env.STORE_PATH }}
41
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42
+ restore-keys : |
43
+ ${{ runner.os }}-pnpm-store-
44
+
45
+ - name : Install dependencies
46
+ run : pnpm install
47
+
48
+ - name : Build
49
+ run : pnpm build
You can’t perform that action at this time.
0 commit comments