mirror of
https://github.com/blyssprivacy/sdk.git
synced 2026-04-26 03:00:13 -04:00
Initial version of homomorphic encryption SDK
This commit is contained in:
49
.github/workflows/build-js.yml
vendored
Normal file
49
.github/workflows/build-js.yml
vendored
Normal 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
31
.github/workflows/publish-to-npm.yml
vendored
Normal 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 }}
|
||||
Reference in New Issue
Block a user