-
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (37 loc) · 941 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Continuos Integration
on:
push:
branches:
- master
- develop
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm build
- name: Run tests
run: pnpm -r test
- name: Build playground
run: pnpm --filter=playground build
- name: Create release PR
uses: changesets/action@v1
with:
publish: ./.github/scripts/publish.sh
env:
BRANCH_NAME: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}