fix(axios): 修复当自定义拦截器解包响应数据时,请求返回 undefined 的问题 #94
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: | |
| branches: | |
| - main | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 检出代码 | |
| uses: actions/checkout@v4 | |
| - name: 设置 Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| registry-url: "https://registry.npmjs.org/" | |
| - name: 安装 pnpm | |
| uses: pnpm/action-setup@v3 | |
| with: | |
| version: 10.12.1 | |
| - name: 安装依赖 | |
| run: pnpm install --frozen-lockfile | |
| - name: 构建所有子包 | |
| run: pnpm build | |
| - name: 版本号升级、生成 changelog、自动发布 | |
| uses: changesets/action@v1 | |
| with: | |
| publish: pnpm release:only | |
| commit: "chore(release): 版本发布" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |