-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (44 loc) · 1.1 KB
/
ci.yml
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
42
43
44
45
46
name: Test & Build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test-and-build:
name: Test & Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun i
- run: bun test
- run: bun run build
release-please:
name: Release Please
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- id: release
uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: zustand-computed
release:
name: Create NPM Release
runs-on: ubuntu-latest
needs: [release-please, test-and-build]
# if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v2
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun i
- run: bun run build
- run: bunx npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}