Skip to content

Commit b2dbb37

Browse files
authored
Merge pull request #28 from su-its/ci/front/actions-bun-to-yarn-migration
Ci/front/actions bun to yarn migration
2 parents 178f850 + b4645f0 commit b2dbb37

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/build-app.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,22 @@ jobs:
2626
contents: read
2727
steps:
2828
- 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
3038
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+
3246
- name: Build Next.js Project
33-
run: npm run build
47+
run: yarn build

0 commit comments

Comments
 (0)