diff --git a/.github/workflows/cf-pages.yml b/.github/workflows/cf-pages.yml index 10cacec..c128805 100644 --- a/.github/workflows/cf-pages.yml +++ b/.github/workflows/cf-pages.yml @@ -10,20 +10,24 @@ on: jobs: deploy: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v4 with: fetch-depth: 1 - - uses: actions/setup-node@v3 + - name: Set up Node.js + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: '18' cache: 'npm' - - run: npm install - - run: npm run build-site + - name: Install dependencies + run: npm install + - name: Build site + run: npm run build-site - name: Publish uses: cloudflare/pages-action@v1