26 lines
434 B
YAML
26 lines
434 B
YAML
name: NodeJS with Webpack
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Build
|
|
run: |
|
|
npm i -g pnpm
|
|
pnpm install
|
|
pnpm build
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
personal_token: ${{ secrets.demo }}
|
|
publish_dir: ./dist
|