From 33f6c9f648ba14a0029e106ff0837958deea320f Mon Sep 17 00:00:00 2001 From: yamanoku <0910yama@gmail.com> Date: Tue, 16 Apr 2024 19:41:46 +0900 Subject: [PATCH] build --- .github/workflows/cloudflare-pages-deploy.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cloudflare-pages-deploy.yml b/.github/workflows/cloudflare-pages-deploy.yml index dddf101..87bc730 100644 --- a/.github/workflows/cloudflare-pages-deploy.yml +++ b/.github/workflows/cloudflare-pages-deploy.yml @@ -5,12 +5,25 @@ on: [push] jobs: publish: runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + permissions: contents: read deployments: write steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: build + run: | + npm ci + npm run build - name: Publish to Cloudflare Pages id: cloudflare_pages_deploy