Skip to content

Commit d79a6d9

Browse files
committed
Dry run publish in CI
1 parent bae3b39 commit d79a6d9

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,19 @@ jobs:
5050
$changes"
5151
gh release create "$tag" --title "$tag" --notes "$body"
5252
gh release upload "${{ github.ref_name }}" packages/powersync/assets/powersync_db.worker.js packages/powersync/assets/powersync_sync.worker.js packages/sqlite3_wasm_build/dist/*.wasm
53+
54+
- name: Setup Node.js
55+
uses: actions/setup-node@v4
56+
- uses: pnpm/action-setup@v2
57+
name: Install pnpm
58+
with:
59+
run_install: false
60+
- name: Publish npm package with WASM files
61+
working-directory: packages/sqlite3/wasm_build
62+
run: |
63+
pnpm i
64+
npm version --allow-same-version --no-git-tag-version $(echo $GITHUB_REF_NAME | sed -E 's/powersync-v//')
65+
pnpm publish --no-git-checks
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test_wasm.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,15 @@ jobs:
2222
if: runner.os == 'macOS'
2323
working-directory: packages/sqlite3_wasm_build
2424
run: ./build.sh
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
- uses: pnpm/action-setup@v2
29+
name: Install pnpm
30+
with:
31+
run_install: false
32+
- name: Dry-run npm publish
33+
working-directory: packages/sqlite3/wasm_build
34+
run: |
35+
pnpm i
36+
pnpm publish --no-git-checks --dry-run
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sqlite3.dart/

0 commit comments

Comments
 (0)