Skip to content

dep(deps-dev): bump @types/node from 22.13.1 to 22.13.5 (#32) #5

dep(deps-dev): bump @types/node from 22.13.1 to 22.13.5 (#32)

dep(deps-dev): bump @types/node from 22.13.1 to 22.13.5 (#32) #5

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build and Deploy to GitHub Pages
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: Build for GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
- name: Install NPM packages
run: npm ci
- name: Setup GitHub Pages
uses: actions/configure-pages@v5
- name: Restore Cache
uses: actions/cache/restore@v4
with:
path: .next/cache
key: build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
build-${{ hashFiles('**/package-lock.json') }}
enableCrossOsArchive: true
- name: Build Next.js
run: node --run build
- name: Save Cache
uses: actions/cache/save@v4
with:
path: .next/cache
key: build-${{ hashFiles('**/package-lock.json') }}
enableCrossOsArchive: true
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out # next.js build output
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4