Skip to content

Commit b1a495c

Browse files
authored
publish all workspaces (#270)
* publish all workspaces * 0.12.1-pre.2 * publish all workspaces * 0.12.1-pre.3 * fix CI * fix CI again * trying to fix publish of all workspaces * 0.12.1-pre.5 * install before publish * 0.12.1-pre.6
1 parent fe3d668 commit b1a495c

5 files changed

Lines changed: 44 additions & 18 deletions

File tree

.github/workflows/publish.yml

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ jobs:
1313
name: "Publish new version to NPM"
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 5
16-
defaults:
17-
run:
18-
working-directory: ./packages/libsql-client
1916
env:
2017
NODE_OPTIONS: "--trace-warnings"
2118
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -32,13 +29,42 @@ jobs:
3229
run: "npm ci && npm run build"
3330
working-directory: ./packages/libsql-core
3431

35-
- name: "Install npm dependencies"
32+
- name: "Publish core (pre-release)"
33+
if: contains(github.ref, '-pre')
34+
run: npm publish --tag next
35+
working-directory: ./packages/libsql-core
36+
37+
- name: "Publish core (latest)"
38+
if: "!contains(github.ref, '-pre')"
39+
run: npm publish
40+
working-directory: ./packages/libsql-core
41+
42+
43+
- name: "Install npm dependencies (client)"
44+
run: "npm ci"
45+
working-directory: ./packages/libsql-client
46+
47+
- name: "Publish client (pre-release)"
48+
if: contains(github.ref, '-pre')
49+
run: npm publish --tag next
50+
working-directory: ./packages/libsql-client
51+
52+
- name: "Publish client (latest)"
53+
if: "!contains(github.ref, '-pre')"
54+
run: npm publish
55+
working-directory: ./packages/libsql-client
56+
57+
58+
- name: "Install npm dependencies (client wasm)"
3659
run: "npm ci"
60+
working-directory: ./packages/libsql-client-wasm
3761

38-
- name: "Publish pre-release version"
62+
- name: "Publish client-wasm (pre-release)"
3963
if: contains(github.ref, '-pre')
40-
run: "npm publish --tag next"
64+
run: npm publish --tag next
65+
working-directory: ./packages/libsql-client-wasm
4166

42-
- name: "Publish latest version"
67+
- name: "Publish client-wasm (latest)"
4368
if: "!contains(github.ref, '-pre')"
44-
run: "npm publish"
69+
run: npm publish
70+
working-directory: ./packages/libsql-client-wasm

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/libsql-client-wasm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@libsql/client-wasm",
3-
"version": "0.12.1-pre.1",
3+
"version": "0.12.1-pre.6",
44
"keywords": [
55
"libsql",
66
"database",
@@ -56,7 +56,7 @@
5656
"typedoc": "rm -rf ./docs && typedoc"
5757
},
5858
"dependencies": {
59-
"@libsql/core": "^0.12.1-pre.1",
59+
"@libsql/core": "^0.12.1-pre.6",
6060
"@libsql/libsql-wasm-experimental": "^0.0.2",
6161
"js-base64": "^3.7.5"
6262
},

packages/libsql-client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@libsql/client",
3-
"version": "0.12.1-pre.1",
3+
"version": "0.12.1-pre.6",
44
"keywords": [
55
"libsql",
66
"database",
@@ -102,7 +102,7 @@
102102
"lint-staged": "lint-staged"
103103
},
104104
"dependencies": {
105-
"@libsql/core": "^0.12.1-pre.1",
105+
"@libsql/core": "^0.12.1-pre.6",
106106
"@libsql/hrana-client": "^0.7.0",
107107
"js-base64": "^3.7.5",
108108
"libsql": "^0.4.4",

packages/libsql-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@libsql/core",
3-
"version": "0.12.1-pre.1",
3+
"version": "0.12.1-pre.6",
44
"keywords": [
55
"libsql",
66
"database",

0 commit comments

Comments
 (0)