Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
ci(js-api): compile backends (#3452)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Oct 19, 2022
1 parent b053380 commit a693427
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/release_js_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ jobs:
with:
node-version: 14.x

- name: Install wasm-pack
uses: jetli/[email protected]
with:
version: 'latest'

- name: Cache pnpm modules
uses: actions/cache@v3
with:
Expand All @@ -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: |
Expand Down
15 changes: 14 additions & 1 deletion npm/js-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

0 comments on commit a693427

Please sign in to comment.