Skip to content

ci: fix pnpm build

ci: fix pnpm build #67

Workflow file for this run

name: CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
ref: main
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Build project
run: |
corepack enable
pnpm install --frozen-lockfile
pnpm build
- name: Upload COS
uses: zkqiang/tencent-cos-action@v0.1.0
with:
args: upload -rs --delete -y ./build/ /
secret_id: ${{ secrets.SECRET_ID }}
secret_key: ${{ secrets.SECRET_KEY }}
bucket: ${{ secrets.BUCKET }}
region: ap-shanghai