Skip to content

refactor(ci): 用 job 级条件限制 publish 仅对 release 提交执行 #72

refactor(ci): 用 job 级条件限制 publish 仅对 release 提交执行

refactor(ci): 用 job 级条件限制 publish 仅对 release 提交执行 #72

Workflow file for this run

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