From a693427d18606c1955c9b74af58092d6c3bad2fb Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Wed, 19 Oct 2022 14:29:28 +0100 Subject: [PATCH] ci(js-api): compile backends (#3452) --- .github/workflows/release_js_api.yml | 11 +++++++++++ npm/js-api/package.json | 15 ++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_js_api.yml b/.github/workflows/release_js_api.yml index dae7b4dbb0e..2431d0ad135 100644 --- a/.github/workflows/release_js_api.yml +++ b/.github/workflows/release_js_api.yml @@ -67,6 +67,11 @@ jobs: with: node-version: 14.x + - name: Install wasm-pack + uses: jetli/wasm-pack-action@v0.3.0 + with: + version: 'latest' + - name: Cache pnpm modules uses: actions/cache@v3 with: @@ -89,6 +94,12 @@ jobs: echo "prerelease=false" >> $GITHUB_ENV echo "version=${{ needs.check.outputs.version }}" >> $GITHUB_ENV + - name: Compile backends + run: | + pnpm --prefix npm/js-api build:wasm-node + pnpm --prefix npm/backend-jsonrpc i + pnpm --prefix npm/backend-jsonrpc run build + - name: Build package working-directory: npm/js-api run: | diff --git a/npm/js-api/package.json b/npm/js-api/package.json index bea9f1d5098..e4f2a35dd29 100644 --- a/npm/js-api/package.json +++ b/npm/js-api/package.json @@ -40,6 +40,19 @@ "rome": "../rome" }, "peerDependencies": { - "rome": "^0.10.0-next" + "rome": "^0.10.1-next", + "@rometools/wasm-nodejs": "^0.10.1-next", + "@rometools/backend-jsonrpc": "^0.10.1-next" + }, + "peerDependenciesMeta": { + "rome": { + "optional": false + }, + "@rometools/wasm-nodejs": { + "optional": true + }, + "@rometools/backend-jsonrpc": { + "optional": true + } } }