Skip to content

Update package.json

Update package.json #4

name: Build & Deploy
on:
push:
branches: ["main"]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
node-version: ["20.9.0"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install packages
run: npm i
- name: Run npm build
run: npm run build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: dist
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}