File tree 5 files changed +38
-21
lines changed
5 files changed +38
-21
lines changed Original file line number Diff line number Diff line change 7
7
- " powersync_flutter_libs-v[0-9]+.[0-9]+.[0-9]+*"
8
8
workflow_dispatch :
9
9
10
- concurrency :
11
- group : ${{ github.workflow }}
12
- cancel-in-progress : false
13
-
14
10
jobs :
15
11
publish-packages :
16
12
name : Publish packages
@@ -35,13 +31,18 @@ jobs:
35
31
- name : Install dependencies
36
32
run : melos bootstrap
37
33
38
- - name : Set powersync core version
39
- run : echo "CORE_VERSION=v0.1.8" >> $GITHUB_ENV
34
+ - name : Get package name from tag
35
+ env :
36
+ GITHUBREF : ${{ github.ref }}
37
+ run : |
38
+ PACKAGE_NAME=$(sed -E 's/refs\/tags\/([a-z0-9_]+)-v([0-9]+\.[0-9]+\.[0-9]+)/\1/' <<< $GITHUBREF) && \
39
+ echo "PACKAGE_NAME=$PACKAGE_NAME" >> $GITHUB_ENV
40
+ echo "Package name: $PACKAGE_NAME"
40
41
41
42
- name : Publish packages dry run
42
43
run : |
43
- melos publish --yes
44
+ melos publish --yes --scope=$PACKAGE_NAME
44
45
45
46
- name : Publish packages
46
47
run : |
47
- melos publish --no-dry-run --yes
48
+ melos publish --no-dry-run --yes --scope=$PACKAGE_NAME
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ command:
16
16
noPrivate : true
17
17
publish :
18
18
hooks :
19
- pre : sh tool/download_binaries.sh
19
+ pre : sh tool/download_binaries.sh v0.1.8 # Download latest core binaries when publishing
20
20
packageFilters :
21
21
noPrivate : true
22
22
Original file line number Diff line number Diff line change @@ -73,6 +73,14 @@ packages:
73
73
url: "https://pub.dev"
74
74
source: hosted
75
75
version: "0.4.1"
76
+ clock:
77
+ dependency: transitive
78
+ description:
79
+ name: clock
80
+ sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
81
+ url: "https://pub.dev"
82
+ source: hosted
83
+ version: "1.1.1"
76
84
collection:
77
85
dependency: transitive
78
86
description:
@@ -117,10 +125,10 @@ packages:
117
125
dependency: transitive
118
126
description:
119
127
name: file
120
- sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d "
128
+ sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c "
121
129
url: "https://pub.dev"
122
130
source: hosted
123
- version: "6.1.4 "
131
+ version: "7.0.0 "
124
132
frontend_server_client:
125
133
dependency: transitive
126
134
description:
@@ -169,6 +177,14 @@ packages:
169
177
url: "https://pub.dev"
170
178
source: hosted
171
179
version: "4.0.2"
180
+ intl:
181
+ dependency: transitive
182
+ description:
183
+ name: intl
184
+ sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf
185
+ url: "https://pub.dev"
186
+ source: hosted
187
+ version: "0.19.0"
172
188
io:
173
189
dependency: transitive
174
190
description:
@@ -221,10 +237,10 @@ packages:
221
237
dependency: "direct dev"
222
238
description:
223
239
name: melos
224
- sha256: "96e64bbade5712c3f010137e195bca9f1b351fac34ab1f322af492ae34032067"
240
+ sha256: a3f06ed871e0348cb99909ad5ddf5f8b53cc61d894c302b5417d2db1ee7ec381
225
241
url: "https://pub.dev"
226
242
source: hosted
227
- version: "3.4 .0"
243
+ version: "6.1 .0"
228
244
meta:
229
245
dependency: transitive
230
246
description:
@@ -293,10 +309,10 @@ packages:
293
309
dependency: transitive
294
310
description:
295
311
name: process
296
- sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09 "
312
+ sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32 "
297
313
url: "https://pub.dev"
298
314
source: hosted
299
- version: "4.2.4 "
315
+ version: "5.0.2 "
300
316
prompts:
301
317
dependency: transitive
302
318
description:
@@ -317,10 +333,10 @@ packages:
317
333
dependency: transitive
318
334
description:
319
335
name: pub_updater
320
- sha256: b06600619c8c219065a548f8f7c192b3e080beff95488ed692780f48f69c0625
336
+ sha256: "54e8dc865349059ebe7f163d6acce7c89eb958b8047e6d6e80ce93b13d7c9e60"
321
337
url: "https://pub.dev"
322
338
source: hosted
323
- version: "0.3.1 "
339
+ version: "0.4.0 "
324
340
pubspec:
325
341
dependency: transitive
326
342
description:
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ environment:
9
9
10
10
dev_dependencies :
11
11
lints : ^2.1.1
12
- melos : ^3.4 .0
12
+ melos : ^6.1 .0
13
13
test : ^1.25.0
14
14
path : ^1.0.0
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- if [ -z " $CORE_VERSION " ]; then
4
- echo " CORE_VERSION is not set" ;
3
+ if [ -z " $1 " ]; then
4
+ echo " Core version is not set" ;
5
5
exit 2;
6
6
fi
7
7
8
- github=" https://github.com/powersync-ja/powersync-sqlite-core/releases/download/$CORE_VERSION "
8
+ github=" https://github.com/powersync-ja/powersync-sqlite-core/releases/download/$1 "
9
9
10
10
curl " ${github} /libpowersync_aarch64.so" -o packages/powersync_flutter_libs/linux/libpowersync_aarch64.so --create-dirs -L -f
11
11
curl " ${github} /libpowersync_x64.so" -o packages/powersync_flutter_libs/linux/libpowersync_x64.so --create-dirs -L -f
You can’t perform that action at this time.
0 commit comments