Skip to content

Commit ef0d5ea

Browse files
committed
fix: clean up sqlite-wasm build process and fix npm fix command
1 parent 29d29d2 commit ef0d5ea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ jobs:
155155
rm -rf sqlite-wasm/sqlite-wasm/*
156156
unzip dist/sqlite-wasm.zip -d sqlite-wasm/tmp
157157
mv sqlite-wasm/tmp/sqlite-wasm-*/jswasm sqlite-wasm/sqlite-wasm
158-
rm -rf sqlite-wasm/tmp sqlite-wasm/bin sqlite-wasm/demo sqlite-wasm/package-lock.json
158+
rm sqlite-wasm/tmp sqlite-wasm/bin sqlite-wasm/demo
159+
160+
cd sqlite-wasm && npm i && npm run fix && npm run publint && npm run check-types && cd ..
159161
160162
PKG=sqlite-wasm/package.json
161163
TMP=sqlite-wasm/package.tmp.json
@@ -195,8 +197,8 @@ jobs:
195197
196198
sed 's/@sqlite\.org\/sqlite-wasm/@cloudsync\/sqlite-wasm/g' sqlite-wasm/README.md > sqlite-wasm/README.tmp
197199
echo -e "# sqlite-sync WASM $(make version)\nThis README and the TypeScript types are from the [official SQLite wasm repository](https://github.com/sqlite/sqlite-wasm)\n\n$(cat sqlite-wasm/README.tmp)" > sqlite-wasm/README.md
198-
rm sqlite-wasm/README.tmp
199-
cd sqlite-wasm && npm i && npm run fix && npm run publint && npm run check-types && npm pack
200+
rm sqlite-wasm/README.tmp sqlite-wasm/package-lock.json
201+
cd sqlite-wasm && npm pack
200202
201203
- uses: actions/[email protected]
202204
if: always()

0 commit comments

Comments
 (0)