chore(release): v3.0.0-beta.12 #4
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 3x Beta NPM Packages | ||
| on: | ||
| push: | ||
| branches: | ||
| - feat_v3.x: | ||
| pull_request: | ||
| branches: | ||
| - feat_v3.x | ||
| jobs: | ||
| release-beta: | ||
| if: startsWith(github.event.head_commit.message, 'chore(release): ') && contains(github.event.head_commit.message, '-beta.') | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| NPM_CONFIG_PROVENANCE: true | ||
| TAG: ${{ inputs.tags }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install pnpm | ||
| run: npm install -g pnpm@v9 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| cache: 'pnpm' | ||
| - name: Install dependencies | ||
| run: pnpm install --no-frozen-lockfile | ||
| - name: Run Build | ||
| run: pnpm build && pnpm build:taro | ||
| - name: Run Release @nutui/nutui-react | ||
| run: cd ./release/h5 && npm publish --dry-run --tag beta | ||
| - name: Run Releases @nutui/nutui-react-taro | ||
| run: cd ./release/taro && npm publish --dry-run --tag beta | ||