Skip to content

Commit

Permalink
build: 切换为 pnpm (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAnotherID authored Jul 15, 2024
1 parent f8b059c commit cbe93f0
Show file tree
Hide file tree
Showing 8 changed files with 5,438 additions and 7,752 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest
run_install: false
- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
node-version: 22
cache: 'pnpm'
- name: Install Dependencies
run: npm install
run: pnpm install
- name: Build WebUI
run: npm run build
run: pnpm run build
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_NAME }}
path: dist/
Expand All @@ -34,7 +39,7 @@ jobs:
cd dist/
zip -r ${{ env.PROJECT_NAME }}.zip .
- name: Pre-release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: Latest Build
tag_name: pre-release
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ jobs:
steps:
- name: Code
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest
run_install: false
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
node-version: 22
cache: 'pnpm'
- name: Install Dependencies
run: npm install
run: pnpm install
- name: Check
uses: keita-hino/vue-tsc-action@main
run: pnpm run check
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dist-ssr

# lock
yarn.lock
pnpm-lock.yaml
package-lock.json

*.log

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
## 部署

```bash
npm install
pnpm install
```

### 开发环境

```bash
npm run dev
pnpm run dev
```

### 生产环境

```bash
npm run build
pnpm run build
```

其他内容待补充
Loading

0 comments on commit cbe93f0

Please sign in to comment.