chore: update deps #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Pnpm CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [22.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- run: pnpm run build:astro | |
# 添加打包步骤 | |
- name: Archive production artifacts | |
run: | | |
cd apps/frontend-astro | |
tar -czf dist.tar.gz dist/ | |
# 添加上传步骤 | |
- name: Upload to server | |
run: | | |
cd apps/frontend-astro | |
curl -v -X POST https://yuanbo.online/oss_service/upload \ | |
-F "[email protected]" \ | |
-F "path=tuixiu" \ | |
-F "should_unzip=true" \ | |
-F "token=${{ secrets.OSS_RS_UPLOAD_TOKEN }}" |