Files
nativewind/.github/workflows/publish.yml
2022-05-05 14:07:45 +10:00

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