This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +66
-1
lines changed
composits-actions/install Expand file tree Collapse file tree 3 files changed +66
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : " Install"
2
+ description : " Sets up Node.js and runs install"
3
+
4
+ runs :
5
+ using : composite
6
+ steps :
7
+ - uses : pnpm/action-setup@v2
8
+ name : Install pnpm
9
+ id : pnpm-install
10
+ with :
11
+ version : 7
12
+ run_install : false
13
+
14
+ - name : Get pnpm store directory
15
+ id : pnpm-cache
16
+ shell : bash
17
+ run : |
18
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
19
+
20
+ - uses : actions/cache@v3
21
+ name : Setup pnpm cache
22
+ with :
23
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
24
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-pnpm-store-
27
+
28
+ - name : Setup Node.js
29
+ uses : actions/setup-node@v3
30
+ with :
31
+ node-version-file : " .nvmrc"
32
+ registry-url : " https://registry.npmjs.org"
33
+ cache : " pnpm"
34
+
35
+ - name : Setup Git User
36
+ shell : bash
37
+ run : |
38
+ git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
39
+ git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
40
+ - name : Install dependencies
41
+ shell : bash
42
+ run : pnpm install
Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
branches :
9
9
- main
10
- - develop
10
+ # - develop
11
11
push :
12
12
branches :
13
13
- main
Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches :
4
+ - main
5
+ - develop
6
+ pull_request :
7
+ branches :
8
+ - main
9
+ - develop
10
+
11
+ jobs :
12
+ build :
13
+ name : Build
14
+ runs-on : self-hosted
15
+ steps :
16
+ - name : Checkout branch
17
+ uses : actions/checkout@v3
18
+
19
+ - name : Install
20
+ uses : ./.github/composite-actions/install
21
+
22
+ - name : Build packages
23
+ run : pnpm build
You can’t perform that action at this time.
0 commit comments