Skip to content

feat: modify

feat: modify #20

Workflow file for this run

# use this action(https://github.com/JamesIves/github-pages-deploy-action)
name: page Build and Deploy
on:
push:
branches:
- main
permissions:
contents: write # Workflow permissions. permissions granted to the GITHUB_TOKEN when running workflows in this repository
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: install pnpm
run: |
npm install -g pnpm@8
pnpm install && pnpm build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
clean: true
- name: Publish to GitHub Package
run: npm publish --registry=https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}