refactor(ci): 用 job 级条件限制 publish 仅对 release 提交执行 #72
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: Test CI | |
| on: | |
| push: | |
| branches: | |
| - next | |
| - feat/** | |
| pull_request: | |
| branches: | |
| - next | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| env: | |
| NODE_OPTIONS: --openssl-legacy-provider | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [18.x] | |
| steps: | |
| - name: Setup JS | |
| uses: sxzz/workflows/setup-js@866f46ed892502b45a58ba4de02987123ccf8e17 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Build Taro UI | |
| run: pnpm --filter taro-ui build | |
| - name: Test Taro UI | |
| run: pnpm --filter taro-ui test |