File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 26
26
contents : read
27
27
steps :
28
28
- uses : actions/checkout@v4
29
- - uses : ./.github/actions/prepare-nodemodules
29
+
30
+ # Corepack enable をしておけば package.json の packageManager を読んで適切なバージョンの yarn を使ってくれる。
31
+ # ただし非公式な方法であり、あくまでワークアラウンド。
32
+ # https://github.com/actions/setup-node/issues/480#issuecomment-1820622085
33
+ # > enable corepack **before** setup-node.
34
+ - name : Enable Corepack
35
+ run : corepack enable
36
+
37
+ - uses : actions/setup-node@v4
30
38
with :
31
- root : ${{ github.workspace }}/typing-app
39
+ node-version : ' 20'
40
+ cache : ' yarn'
41
+ cache-dependency-path : typing-app/yarn.lock
42
+
43
+ - name : Install Dependencies
44
+ run : yarn
45
+
32
46
- name : Build Next.js Project
33
- run : npm run build
47
+ run : yarn build
You can’t perform that action at this time.
0 commit comments