Skip to content

feat: modify workflow #4

feat: modify workflow

feat: modify workflow #4

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.x
- name: install pnpm
run: npm install -g pnpm@8
run: pnpm install && pnpm build

Check failure on line 24 in .github/workflows/npm-publish.yml

View workflow run for this annotation

GitHub Actions / page Build and Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/npm-publish.yml (Line: 24, Col: 9): 'run' is already defined
- 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