@@ -14,22 +14,25 @@ jobs:
1414 strategy :
1515 matrix :
1616 os : [ubuntu-latest]
17+ node : [20]
1718
1819 runs-on : ${{ matrix.os }}
1920
2021 steps :
2122 - name : Checkout codes
2223 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23- with :
24- fetch-depth : 0
2524
26- - name : Setup deno
27- uses : denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
25+ - name : Install pnpm
26+ uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
27+
28+ - name : Setup node
29+ uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
2830 with :
29- deno-version : v2.5
31+ node-version : ${{ matrix.node }}
32+ cache : pnpm
3033
3134 - name : Lint codes
32- run : deno lint
35+ run : pnpm lint
3336
3437 build :
3538 name : Build
@@ -44,29 +47,25 @@ jobs:
4447 - name : Checkout codes
4548 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4649
47- - name : Setup deno
48- uses : denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
49- with :
50- deno-version : v2.5
51-
5250 - name : Setup bun
5351 uses : oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
5452 with :
5553 bun-version : v1.3
5654
57- - name : Enable corepack
58- run : corepack enable
55+ - name : Install pnpm
56+ uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
5957
6058 - name : Setup node
6159 uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
6260 with :
6361 node-version : ${{ matrix.node }}
62+ cache : pnpm
6463
6564 - name : Install dependencies
66- run : bun install --frozen-lockfile
65+ run : pnpm install --frozen-lockfile
6766
6867 - name : Build codes
69- run : npm run build
68+ run : pnpm build
7069
7170 test :
7271 name : Test
@@ -81,29 +80,25 @@ jobs:
8180 - name : Checkout codes
8281 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
8382
84- - name : Setup deno
85- uses : denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
86- with :
87- deno-version : v2.5
88-
8983 - name : Setup bun
9084 uses : oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
9185 with :
9286 bun-version : v1.3
9387
88+ - name : Install pnpm
89+ uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
90+
9491 - name : Setup node
9592 uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
9693 with :
9794 node-version : ${{ matrix.node }}
98-
99- - name : Enable corepack
100- run : corepack enable
95+ cache : pnpm
10196
10297 - name : Install dependencies
103- run : bun install --frozen-lockfile
98+ run : pnpm install --frozen-lockfile
10499
105100 - name : Test
106- run : npm run test
101+ run : pnpm test
107102
108103 edge-release :
109104 name : Edge Release
@@ -120,26 +115,22 @@ jobs:
120115 - name : Checkout codes
121116 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
122117
123- - name : Setup deno
124- uses : denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
125- with :
126- deno-version : v2.5
127-
128118 - name : Setup bun
129119 uses : oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
130120 with :
131121 bun-version : v1.3
132122
123+ - name : Install pnpm
124+ uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
125+
133126 - name : Setup node
134127 uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
135128 with :
136129 node-version : ${{ matrix.node }}
137-
138- - name : Enable corepack
139- run : corepack enable
130+ cache : pnpm
140131
141132 - name : Install dependencies
142- run : bun install --frozen-lockfile
133+ run : pnpm install --frozen-lockfile
143134
144135 - name : Release Edge
145136 if : |
0 commit comments