File tree Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,16 @@ jobs:
12
12
with :
13
13
bun-version : 1.1.3
14
14
15
- - name : Build and test the library
15
+ - name : Install dependencies
16
16
run : |
17
17
bun install
18
- bun run playwright install --with-deps
19
- bun build:lib
20
- bun test:unit
21
- bun test:e2e
18
+ bun playwright install --with-deps
19
+
20
+ - name : Build library
21
+ run : bun build:lib
22
+
23
+ - name : Run unit tests
24
+ run : bun test:unit
25
+
26
+ - name : Run e2e tests
27
+ run : bun test:e2e
Original file line number Diff line number Diff line change @@ -11,19 +11,31 @@ jobs:
11
11
id-token : write
12
12
steps :
13
13
- uses : actions/checkout@v4
14
+
14
15
- uses : actions/setup-node@v4
15
16
with :
16
17
node-version : " 20.x"
17
18
registry-url : " https://registry.npmjs.org"
19
+
20
+ - uses : oven-sh/setup-bun@v1
21
+ with :
22
+ bun-version : 1.1.3
23
+
24
+ - name : Install dependencies
25
+ run : bun install
26
+
27
+ - name : Build library
28
+ run : bun build:lib
29
+
30
+ - name : Build package
31
+ run : bun build:package
32
+
18
33
- name : Publish package
19
34
env :
20
35
NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
21
36
22
37
# Currently, only npm supports publishing packages with provenance
23
38
# https://docs.npmjs.com/generating-provenance-statements
24
39
run : |
25
- npm install --force
26
- node scripts
27
- node scripts/npm-package
28
40
cd package
29
41
npm publish --provenance --access public
You can’t perform that action at this time.
0 commit comments