chore: 使用22的node版本构建 #64
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout main | |
| uses: actions/checkout@v2 | |
| with: | |
| ref: main | |
| - name: Setup node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: '22.x' | |
| - name: Build project | |
| run: yarn && yarn 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 |