Skip to content

Commit 9704615

Browse files
committed
Merge remote-tracking branch 'origin/main' into remove-datastream
2 parents 2b9eca2 + f720d62 commit 9704615

File tree

470 files changed

+43264
-18340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

470 files changed

+43264
-18340
lines changed

.changeset/angry-planes-accept.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.changeset/beige-pigs-occur.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"access": "restricted",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": ["!@powersync/*"],
10+
"ignore": ["import-tests", "powersynctests"],
1111
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
1212
"onlyUpdatePeerDependentsWhenOutOfRange": true,
1313
"updateInternalDependents": "out-of-range"

.changeset/cool-crews-hug.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/little-dancers-beam.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/new-attachments-react-native.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/dev-packages.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- tauri-plugin-powersync@[0-9]+.[0-9]+.[0-9]+
6+
7+
jobs:
8+
publish_crates_io:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write # Required for OIDC token exchange
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: rust-lang/crates-io-auth-action@v1
15+
id: auth
16+
17+
- name: Publish powersync crate
18+
run: cargo publish
19+
working-directory: powersync
20+
env:
21+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

.github/workflows/release.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch: # For dev publishing
78

89
concurrency: ${{ github.workflow }}-${{ github.ref }}
910

11+
permissions:
12+
id-token: write # Required for OIDC / trusted publishing
13+
contents: write # Required for changesets pushing commits
14+
pull-requests: write # Required for changesets creating PRs
15+
1016
jobs:
1117
release:
1218
name: Release
@@ -21,16 +27,30 @@ jobs:
2127
with:
2228
node-version-file: '.nvmrc'
2329
cache: pnpm
30+
- name: Update npm
31+
run: |
32+
npm install -g npm@latest
33+
npm --version
2434
- name: Install dependencies
2535
run: pnpm install
36+
2637
- name: Create Release Pull Request or Publish to npm
2738
id: changesets
2839
uses: changesets/action@v1
40+
if: ${{ github.event_name == 'push' }}
2941
with:
3042
# Update the monorepo lockfile after versioning
3143
version: pnpm changeset:version
3244
# This expects you to have a script called release which does a build for your packages and calls changeset publish
3345
publish: pnpm release
3446
env:
3547
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48+
49+
- name: Dev publish
50+
if: ${{ github.event_name == 'workflow_dispatch' }}
51+
run: |
52+
pnpm build:packages:prod
53+
pnpm changeset version --no-git-tag --snapshot dev
54+
pnpm changeset publish --tag dev
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test-tauri.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Tauri Integration tests
2+
on:
3+
pull_request: # triggered for any PR updates (including new pushes to PR branch)
4+
5+
jobs:
6+
check-changes:
7+
name: Check for relevant changes
8+
runs-on: ubuntu-latest
9+
outputs:
10+
should_run: ${{ steps.check.outputs.should_run }}
11+
steps:
12+
- uses: actions/checkout@v6
13+
with:
14+
fetch-depth: 0
15+
- name: Check for changes
16+
id: check
17+
run: |
18+
git fetch origin ${{ github.base_ref }}
19+
if git diff --quiet origin/${{ github.base_ref }} -- packages/common packages/tauri; then
20+
echo "should_run=false" >> $GITHUB_OUTPUT
21+
else
22+
echo "should_run=true" >> $GITHUB_OUTPUT
23+
fi
24+
25+
test-tauri:
26+
name: Tauri integration tests macOS
27+
runs-on: macos-latest
28+
needs: check-changes
29+
if: needs.check-changes.outputs.should_run == 'true'
30+
timeout-minutes: 15
31+
32+
steps:
33+
- uses: actions/checkout@v6
34+
- name: Enable Corepack
35+
run: corepack enable
36+
- name: Setup Node.js
37+
uses: actions/setup-node@v6
38+
with:
39+
node-version-file: '.nvmrc'
40+
cache: pnpm
41+
42+
- name: Install dependencies
43+
run: pnpm install
44+
- name: Build
45+
run: pnpm run -r --filter "@powersync/tauri-plugin..." build
46+
- name: Compile test runner
47+
run: cargo build -p test-runner
48+
- name: Test
49+
working-directory: packages/tauri
50+
run: pnpm test

0 commit comments

Comments
 (0)