Skip to content

feat: update

feat: update #8

Workflow file for this run

name: CI
on:
push:
branches:
- main
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
# vite 需要在node>=12 的环境下执行
# puppeteer 需要在node>=14.1.0 的环境下执行
node-version: '16.14.1'
# 下载pnpm
- name: Install pnpm
run: npm install -g pnpm
# 确保 pnpm-lock.yaml 与 package.json 保持同步。
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
# - name: Cache
# id: cache-dependencies
# uses: actions/cache@v3
# with:
# path: |
# **/node_modules
# key: ${{runner.OS}}-${{hashFiles('**/pnpm-lock.yaml')}}
# - name: Installing Dependencies
# if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: pnpm install

Check failure on line 33 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 33, Col: 9): 'run' is already defined
- name: Running Lint
run: pnpm run build