Skip to content

Commit bedeb18

Browse files
committed
Add GitHub Actions workflow for building, testing, and releasing sqlite-wasm
1 parent 48ebcc7 commit bedeb18

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: build, test and release sqlite-wasm
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
btr:
9+
runs-on: ubuntu-22.04
10+
name: build, test and release sqlite-wasm
11+
12+
steps:
13+
14+
- uses: actions/[email protected]
15+
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: '20.x'
19+
registry-url: 'https://registry.npmjs.org'
20+
21+
- name: setup playwright for tests
22+
run: npx playwright install --with-deps && npx playwright install msedge && npx playwright install chrome
23+
24+
- name: build, test and release sqlite-wasm
25+
run: cd sqlite-wasm && npm i && npm run deploy
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,4 @@ cp modules/sqlite-wasm/tsconfig.json sqlite-wasm/.
4545
PKG=sqlite-wasm/package.json
4646
TMP=sqlite-wasm/package.tmp.json
4747

48-
jq --arg version "$(cat modules/sqlite/VERSION)-sync.$(cd modules/sqlite-sync && make version)-vector.$(cd modules/sqlite-vector && make version)" '.version = $version' "$PKG" > "$TMP" && mv "$TMP" "$PKG"
49-
(cd sqlite-wasm && npm i && npm run fix && npm run publint && npm run check-types)
48+
jq --arg version "$(cat modules/sqlite/VERSION)-sync.$(cd modules/sqlite-sync && make version)-vector.$(cd modules/sqlite-vector && make version)" '.version = $version' "$PKG" > "$TMP" && mv "$TMP" "$PKG"

0 commit comments

Comments
 (0)