Initial version of homomorphic encryption SDK

This commit is contained in:
Samir Menon
2023-02-07 15:21:24 -08:00
parent c93fff0fe5
commit 48e4792ca2
142 changed files with 61432 additions and 5074 deletions

49
.github/workflows/build-js.yml vendored Normal file
View File

@@ -0,0 +1,49 @@
name: Build the SDK
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
client-build:
name: Build SDK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '19.x'
- name: Install wasm-pack
uses: jetli/wasm-pack-action@f98777369a49686b132a9e8f0fdd59837bf3c3fd
with:
version: v0.10.3
- name: Install dependencies
run: |
npm ci
- name: Run build
run: |
npm run build
- name: Run tests
run: |
npm test
- name: Upload single-file bundle
uses: actions/upload-artifact@v3
with:
name: sdk-bundle
path: dist/blyss-bundle.min.js
- name: Upload complete bundle
uses: actions/upload-artifact@v3
with:
name: sdk
path: dist/

31
.github/workflows/publish-to-npm.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Publish to NPM
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '19.x'
registry-url: 'https://registry.npmjs.org'
- name: Install wasm-pack
uses: jetli/wasm-pack-action@f98777369a49686b132a9e8f0fdd59837bf3c3fd
with:
version: v0.10.3
- name: Install dependencies
run: |
npm ci
- name: Run build
run: |
npm run build
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}