feat: update to version 2.7.6 #24
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' # 当推送以 'v' 开头的标签时触发 | |
| permissions: | |
| contents: write # 给 release 创建权限 | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # 先设置 Node.js 版本,保证后续 pnpm 用 Node v22 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v3 | |
| with: | |
| version: 10.14.0 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run convert-changelog script | |
| run: node scripts/convert-changelog.js | |
| env: | |
| GITHUB_ACTIONS: 'true' | |
| - name: Create Release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| release_name: Release ${{ github.ref_name }} | |
| body: | | |
| ## 变更日志 | |
| 请查看 [CHANGELOG](CHANGELOG) 文件了解详细变更内容。 | |
| ## 下载 | |
| - [Source code (zip)](https://github.com/${{ github.repository }}/archive/${{ github.ref_name }}.zip) | |
| - [Source code (tar.gz)](https://github.com/${{ github.repository }}/archive/${{ github.ref_name }}.tar.gz) | |
| draft: false | |
| prerelease: false | |
| - name: Build project | |
| run: pnpm run build | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-files | |
| path: .next/ | |
| retention-days: 30 |