ci(js-api): compile backends
MODIFY
.github/workflows/release_js_api.yml
.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: |

MODIFY
npm/js-api/package.json
npm/js-api/package.json
"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
+ }
}
}

ci(js-api): compile backends (#3452)