File tree Expand file tree Collapse file tree 2 files changed +37
-10
lines changed Expand file tree Collapse file tree 2 files changed +37
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : Preview
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - " apps/cli/**"
7
+ - " package.json"
8
+ - " bun.lock"
9
+
10
+ concurrency : ${{ github.workflow }}-${{ github.ref }}
11
+
12
+ jobs :
13
+ preview :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout Code
17
+ uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0
20
+
21
+ - name : Setup Bun
22
+ uses : oven-sh/setup-bun@v2
23
+ with :
24
+ bun-version : latest
25
+
26
+ - name : Install Dependencies
27
+ run : bun install --frozen-lockfile
28
+
29
+ - name : Publish Preview Package
30
+ run : bunx pkg-pr-new publish './apps/cli' --bin
Original file line number Diff line number Diff line change 1
- name : Publish
1
+ name : Release
2
2
3
3
on :
4
4
push :
5
5
branches :
6
6
- main
7
7
- beta
8
8
paths :
9
- - ' apps/cli/**'
10
- - ' .changeset/**'
11
- - ' package.json'
12
- - ' bun.lock'
13
- pull_request :
9
+ - " apps/cli/**"
10
+ - " .changeset/**"
11
+ - " package.json"
12
+ - " bun.lock"
14
13
15
14
concurrency : ${{ github.workflow }}-${{ github.ref }}
16
15
17
16
jobs :
18
- publish :
17
+ release :
19
18
runs-on : ubuntu-latest
20
19
steps :
21
20
- name : Checkout Code
@@ -31,14 +30,12 @@ jobs:
31
30
- name : Install Dependencies
32
31
run : bun install --frozen-lockfile
33
32
34
- - run : bunx pkg-pr-new publish './apps/cli' --bin
35
-
36
33
- name : Create Release Pull Request or Publish
37
34
id : changesets
38
35
uses : changesets/action@v1
39
36
with :
40
37
publish : bun run publish-packages
41
38
env :
42
- MODE : ' prod'
39
+ MODE : " prod"
43
40
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
41
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments