Skip to content

Commit

Permalink
publish all workspaces (#270)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sivukhin authored Sep 19, 2024
1 parent fe3d668 commit b1a495c
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 18 deletions.
42 changes: 34 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
name: "Publish new version to NPM"
runs-on: ubuntu-latest
timeout-minutes: 5
defaults:
run:
working-directory: ./packages/libsql-client
env:
NODE_OPTIONS: "--trace-warnings"
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -32,13 +29,42 @@ jobs:
run: "npm ci && npm run build"
working-directory: ./packages/libsql-core

- name: "Install npm dependencies"
- name: "Publish core (pre-release)"
if: contains(github.ref, '-pre')
run: npm publish --tag next
working-directory: ./packages/libsql-core

- name: "Publish core (latest)"
if: "!contains(github.ref, '-pre')"
run: npm publish
working-directory: ./packages/libsql-core


- name: "Install npm dependencies (client)"
run: "npm ci"
working-directory: ./packages/libsql-client

- name: "Publish client (pre-release)"
if: contains(github.ref, '-pre')
run: npm publish --tag next
working-directory: ./packages/libsql-client

- name: "Publish client (latest)"
if: "!contains(github.ref, '-pre')"
run: npm publish
working-directory: ./packages/libsql-client


- name: "Install npm dependencies (client wasm)"
run: "npm ci"
working-directory: ./packages/libsql-client-wasm

- name: "Publish pre-release version"
- name: "Publish client-wasm (pre-release)"
if: contains(github.ref, '-pre')
run: "npm publish --tag next"
run: npm publish --tag next
working-directory: ./packages/libsql-client-wasm

- name: "Publish latest version"
- name: "Publish client-wasm (latest)"
if: "!contains(github.ref, '-pre')"
run: "npm publish"
run: npm publish
working-directory: ./packages/libsql-client-wasm
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/libsql-client-wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@libsql/client-wasm",
"version": "0.12.1-pre.1",
"version": "0.12.1-pre.6",
"keywords": [
"libsql",
"database",
Expand Down Expand Up @@ -56,7 +56,7 @@
"typedoc": "rm -rf ./docs && typedoc"
},
"dependencies": {
"@libsql/core": "^0.12.1-pre.1",
"@libsql/core": "^0.12.1-pre.6",
"@libsql/libsql-wasm-experimental": "^0.0.2",
"js-base64": "^3.7.5"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/libsql-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@libsql/client",
"version": "0.12.1-pre.1",
"version": "0.12.1-pre.6",
"keywords": [
"libsql",
"database",
Expand Down Expand Up @@ -102,7 +102,7 @@
"lint-staged": "lint-staged"
},
"dependencies": {
"@libsql/core": "^0.12.1-pre.1",
"@libsql/core": "^0.12.1-pre.6",
"@libsql/hrana-client": "^0.7.0",
"js-base64": "^3.7.5",
"libsql": "^0.4.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/libsql-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@libsql/core",
"version": "0.12.1-pre.1",
"version": "0.12.1-pre.6",
"keywords": [
"libsql",
"database",
Expand Down

0 comments on commit b1a495c

Please sign in to comment.