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

Commit

Permalink
feat: use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
gz65555 committed Dec 25, 2023
1 parent c0bd7f9 commit 332a7fc
Show file tree
Hide file tree
Showing 3 changed files with 6,342 additions and 5,510 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,26 @@ name: Npm Publish
on:
push:
branches:
- main # 当main分支有push事件时触发
- main

jobs:
publish:
runs-on: ubuntu-latest # 定义运行环境
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"
- run: npm install
- run: npm run build
cache: pnpm

- name: Install
run: pnpm install

- name: Build
run: pnpm build

- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 332a7fc

Please sign in to comment.