Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

feat: use pnpm

feat: use pnpm #3

Workflow file for this run

name: Npm Publish
# 定义触发条件
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: "20"
cache: pnpm
- name: Install
run: pnpm install
- name: Build
run: pnpm build
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}