Skip to content

refactor: pdo article in section best practice of using prepared stat… #31

refactor: pdo article in section best practice of using prepared stat…

refactor: pdo article in section best practice of using prepared stat… #31

# .github/workflows/build-and-deploy.yml
name: Node.js CI
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
# a standard step for GitHub actions on Node
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
with:
# update the Node version to meet your needs
node-version: 18.19.0
cache: npm
- name: Build
run: |
npm ci
npm run build
- name: Deploy to GitHub Pages
# https://github.com/JamesIves/github-pages-deploy-action
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: out