File tree Expand file tree Collapse file tree 4 files changed +32
-40
lines changed
actions/install-dependencies Expand file tree Collapse file tree 4 files changed +32
-40
lines changed Original file line number Diff line number Diff line change
1
+ name : " Install Dependencies"
2
+ description : " Install dependencies, fetching from cache when possible"
3
+ inputs :
4
+ node-version :
5
+ description : the version of Node.js to install
6
+ default : 20.18.0
7
+
8
+ runs :
9
+ using : " composite"
10
+ steps :
11
+ - name : Install pnpm
12
+ uses : pnpm/action-setup@v4
13
+ with :
14
+ version : 9
15
+
16
+ - name : Install Node.js ${{ inputs.node-version }}
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : ${{ inputs.node-version }}
20
+ cache : " pnpm"
21
+ registry-url : " https://registry.npmjs.org"
22
+
23
+ - name : Install NPM Dependencies
24
+ shell : bash
25
+ run : pnpm install --frozen-lockfile
Original file line number Diff line number Diff line change 18
18
- name : Check out code
19
19
uses : actions/checkout@v4
20
20
21
- - name : Setup pnpm
22
- uses : pnpm/action-setup@v4
23
- with :
24
- version : 9
25
-
26
- - name : Setup Node.js environment
27
- uses : actions/setup-node@v4
28
- with :
29
- node-version : 20
30
- cache : " pnpm"
31
-
32
- - name : Install dependencies
33
- run : pnpm install --frozen-lockfile
21
+ - name : Install Dependencies
22
+ uses : ./.github/actions/install-dependencies
34
23
35
24
- name : ${{ matrix.script }}
36
25
run : pnpm run ${{ matrix.script }}
Original file line number Diff line number Diff line change @@ -14,21 +14,11 @@ jobs:
14
14
- name : Check out code
15
15
uses : actions/checkout@v4
16
16
17
- - name : Setup pnpm
18
- uses : pnpm/action-setup@v4
19
- with :
20
- version : 9
17
+ - name : Install Dependencies
18
+ uses : ./.github/actions/install-dependencies
21
19
22
- - name : Setup Node.js environment
23
- uses : actions/setup-node@v4
24
- with :
25
- node-version : 20
26
- cache : " pnpm"
27
-
28
- - name : Install dependencies
29
- run : |
30
- pnpm install --frozen-lockfile
31
- pnpm run install-playwright
20
+ - name : Install Playwright
21
+ run : pnpm run install-playwright
32
22
33
23
- name : Build all workers
34
24
run : pnpm -r build:worker
Original file line number Diff line number Diff line change 14
14
with :
15
15
fetch-depth : 0
16
16
17
- - name : Install pnpm
18
- uses : pnpm/action-setup@v4
19
- with :
20
- version : 9.10.0
21
-
22
- - name : Install Node.js 20
23
- uses : actions/setup-node@v4
24
- with :
25
- node-version : 20
26
- cache : " pnpm"
27
- registry-url : " https://registry.npmjs.org"
28
-
29
17
- name : Install Dependencies
30
- run : pnpm i --frozen-lockfile
18
+ uses : ./.github/actions/install-dependencies
31
19
32
20
- name : Build
33
21
run : pnpm -F cloudflare run build
You can’t perform that action at this time.
0 commit comments