Skip to content

Commit 756b671

Browse files
committed
ci: break into steps
1 parent 8c43d44 commit 756b671

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@ jobs:
1212
with:
1313
bun-version: 1.1.3
1414

15-
- name: Build and test the library
15+
- name: Install dependencies
1616
run: |
1717
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

.github/workflows/release.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,31 @@ jobs:
1111
id-token: write
1212
steps:
1313
- uses: actions/checkout@v4
14+
1415
- uses: actions/setup-node@v4
1516
with:
1617
node-version: "20.x"
1718
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+
1833
- name: Publish package
1934
env:
2035
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
2136

2237
# Currently, only npm supports publishing packages with provenance
2338
# https://docs.npmjs.com/generating-provenance-statements
2439
run: |
25-
npm install --force
26-
node scripts
27-
node scripts/npm-package
2840
cd package
2941
npm publish --provenance --access public

0 commit comments

Comments
 (0)