@@ -476,6 +476,35 @@ jobs:
476
476
path : js/api-augment/dist
477
477
if-no-files-found : error
478
478
479
+ build-js-ethereum-utils :
480
+ name : Build JS Ethereum utils
481
+ runs-on : ubuntu-24.04
482
+ container : ghcr.io/frequency-chain/frequency/ci-base-image:1.5.5
483
+ steps :
484
+ - name : Check Out Repo
485
+ uses : actions/checkout@v4
486
+ with :
487
+ ref : ${{env.RELEASE_BRANCH_NAME}}
488
+ - name : Set up NodeJs
489
+ uses : actions/setup-node@v4
490
+ with :
491
+ node-version : 20
492
+ cache : " npm"
493
+ registry-url : " https://registry.npmjs.org"
494
+ cache-dependency-path : js/ethereum-utils/package-lock.json
495
+ - name : Install
496
+ run : npm install
497
+ working-directory : js/ethereum-utils
498
+ - name : Build
499
+ run : npm run build
500
+ working-directory : js/ethereum-utils
501
+ - name : Upload Dist Dir
502
+ uses : actions/upload-artifact@v4
503
+ with :
504
+ name : js-ethereum-utils-${{github.run_id}}
505
+ path : js/ethereum-utils/dist
506
+ if-no-files-found : error
507
+
479
508
build-js-schemas :
480
509
name : Build JS Schemas
481
510
runs-on : ubuntu-24.04
@@ -705,6 +734,7 @@ jobs:
705
734
test-version-matches-release,
706
735
build-rust-developer-docs,
707
736
build-js-api-augment,
737
+ build-js-ethereum-utils,
708
738
build-js-schemas,
709
739
]
710
740
name : Wait for All Builds to Finish
@@ -1205,6 +1235,52 @@ jobs:
1205
1235
env :
1206
1236
NODE_AUTH_TOKEN : ${{secrets.NODE_AUTH_TOKEN}}
1207
1237
1238
+ release-js-ethereum-utils :
1239
+ needs : wait-for-all-builds
1240
+ name : Release JS Ethereum utils
1241
+ runs-on : ubuntu-24.04
1242
+ steps :
1243
+ - name : Check Out Repo
1244
+ uses : actions/checkout@v4
1245
+ with :
1246
+ ref : ${{env.RELEASE_BRANCH_NAME}}
1247
+ - name : Full Release?
1248
+ id : is-full-release
1249
+ uses : ./.github/workflows/common/is-full-release
1250
+ with :
1251
+ version-tag : ${{env.NEW_RELEASE_TAG}}
1252
+ - name : Set up NodeJs
1253
+ uses : actions/setup-node@v4
1254
+ with :
1255
+ node-version : 20
1256
+ cache : " npm"
1257
+ registry-url : " https://registry.npmjs.org"
1258
+ cache-dependency-path : js/ethereum-utils/package-lock.json
1259
+ - name : Download Dist Dir
1260
+ id : download
1261
+ uses : actions/download-artifact@v4
1262
+ with :
1263
+ name : js-api-ethereum-utils-${{github.run_id}}
1264
+ path : js/ethereum-utils/dist
1265
+ - name : Version Package
1266
+ if : env.TEST_RUN != 'true'
1267
+ run : npm version --new-version "${{env.NEW_RELEASE_TAG}}" --no-git-tag-version
1268
+ working-directory : js/ethereum-utils/dist
1269
+ - name : Release on NPM @latest
1270
+ if : env.TEST_RUN != 'true' &&
1271
+ steps.is-full-release.outputs.is-full-release == 'true'
1272
+ run : npm publish --tag latest --access public
1273
+ working-directory : ./js/ethereum-utils/dist
1274
+ env :
1275
+ NODE_AUTH_TOKEN : ${{secrets.NODE_AUTH_TOKEN}}
1276
+ - name : Release Candidate on NPM
1277
+ if : env.TEST_RUN != 'true' &&
1278
+ steps.is-full-release.outputs.is-full-release != 'true'
1279
+ run : npm publish --tag next --access public
1280
+ working-directory : ./js/ethereum-utils/dist
1281
+ env :
1282
+ NODE_AUTH_TOKEN : ${{secrets.NODE_AUTH_TOKEN}}
1283
+
1208
1284
release-js-schemas :
1209
1285
needs : wait-for-all-builds
1210
1286
name : Release JS Schemas
0 commit comments