Skip to content

Commit 528de3e

Browse files
authored
Merge pull request #240 from BitGo/BTC-3241-wasm-ton-ci-publish
chore: add wasm-ton to CI/CD pipeline and enable publishing
2 parents 44c7b70 + 254ad7f commit 528de3e

3 files changed

Lines changed: 26 additions & 3 deletions

File tree

.github/workflows/build-and-test.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
packages/wasm-mps
4545
packages/wasm-solana
4646
packages/wasm-dot
47+
packages/wasm-ton
4748
cache-on-failure: true
4849

4950
- name: Setup Node
@@ -99,6 +100,8 @@ jobs:
99100
packages/wasm-solana/js/wasm/
100101
packages/wasm-dot/dist/
101102
packages/wasm-dot/js/wasm/
103+
packages/wasm-ton/dist/
104+
packages/wasm-ton/js/wasm/
102105
retention-days: 1
103106

104107
- name: Upload webui artifact
@@ -114,7 +117,7 @@ jobs:
114117
strategy:
115118
fail-fast: false
116119
matrix:
117-
package: [wasm-bip32, wasm-mps, wasm-utxo, wasm-solana, wasm-dot]
120+
package: [wasm-bip32, wasm-mps, wasm-utxo, wasm-solana, wasm-dot, wasm-ton]
118121
include:
119122
- package: wasm-utxo
120123
needs-wasm-pack: true
@@ -131,6 +134,9 @@ jobs:
131134
- package: wasm-dot
132135
needs-wasm-pack: false
133136
has-wasm-pack-tests: false
137+
- package: wasm-ton
138+
needs-wasm-pack: false
139+
has-wasm-pack-tests: false
134140
steps:
135141
- uses: actions/checkout@v4
136142
with:
@@ -263,6 +269,16 @@ jobs:
263269
packages/wasm-dot/dist/
264270
retention-days: 1
265271

272+
- name: Upload wasm-ton build artifacts
273+
if: inputs.upload-artifacts
274+
uses: actions/upload-artifact@v4
275+
with:
276+
name: wasm-ton-build
277+
path: |
278+
packages/wasm-ton/pkg/
279+
packages/wasm-ton/dist/
280+
retention-days: 1
281+
266282
# This job provides a stable "test / Test" status check for branch protection.
267283
# It runs after all other jobs complete successfully.
268284
gate:

.github/workflows/publish.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ jobs:
5454
name: wasm-dot-build
5555
path: packages/wasm-dot/
5656

57+
- name: Download wasm-ton build artifacts
58+
uses: actions/download-artifact@v4
59+
with:
60+
name: wasm-ton-build
61+
path: packages/wasm-ton/
62+
5763
- name: Setup Node
5864
uses: actions/setup-node@v4
5965
with:

packages/wasm-ton/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
"name": "@bitgo/wasm-ton",
33
"description": "WebAssembly wrapper for TON cryptographic operations",
44
"version": "0.0.1",
5-
"private": true,
65
"type": "module",
76
"repository": {
87
"type": "git",
98
"url": "git+https://github.com/BitGo/BitGoWASM"
109
},
1110
"license": "MIT",
1211
"files": [
13-
"dist"
12+
"dist/esm/js/**/*",
13+
"dist/cjs/js/**/*",
14+
"dist/cjs/package.json"
1415
],
1516
"exports": {
1617
".": {

0 commit comments

Comments
 (0)