mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-19 18:13:33 +08:00
27 lines
653 B
YAML
27 lines
653 B
YAML
name: publish
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- next
|
|
jobs:
|
|
CI:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "16"
|
|
cache: "npm"
|
|
- run: npm install
|
|
- run: npm run build
|
|
- name: Get number of CPU cores
|
|
id: cpu-cores
|
|
uses: SimenB/github-actions-cpu-cores@v1
|
|
- run: npm test -- --max-workers ${{ steps.cpu-cores.outputs.count }}
|
|
- run: npx semantic-release
|
|
env:
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
HUSKY: 0
|