File tree Expand file tree Collapse file tree 3 files changed +8
-27
lines changed
Expand file tree Collapse file tree 3 files changed +8
-27
lines changed Original file line number Diff line number Diff line change 1- name : Deploy build on lactame.com
1+ name : Deploy on lactame.com
22
33on :
4+ workflow_dispatch :
45 release :
56 types : [published]
67
7- env :
8- NODE_VERSION : 24.x
9-
108jobs :
119 deploy :
12- runs-on : ubuntu-latest
13- steps :
14- - uses : actions/checkout@v5
15- - name : Get package name
16- run : echo "PACKAGE_NAME=$(jq .name package.json | tr -d '"')" >> $GITHUB_ENV
17- - uses : actions/setup-node@v4
18- with :
19- node-version : ${{ env.NODE_VERSION }}
20- - name : Install dependencies
21- run : npm install
22- - name : Build project
23- run : npm run build
24- - name : Deploy to lactame.com
25- uses : zakodium/lactame-action@v1
26- with :
27- token : ${{ secrets.LACTAME_TOKEN }}
28- name : ${{ env.PACKAGE_NAME }}
29- folder : dist
10+ # Documentation: https://github.com/zakodium/workflows#lactame-deploy
11+ uses : zakodium/workflows/.github/workflows/lactame-deploy.yml@lactame-deploy-v1
12+ secrets :
13+ lactame-token : ${{ secrets.LACTAME_TOKEN }}
Original file line number Diff line number Diff line change @@ -43,9 +43,7 @@ <h1>DLS Analysis Demo</h1>
4343 const file = event . target . files [ 0 ] ;
4444 if ( ! file ) return ;
4545 const arrayBuffer = await file . arrayBuffer ( ) ;
46- const measurements = await ZmesParser . fromZmes (
47- new Uint8Array ( arrayBuffer ) ,
48- ) ;
46+ const measurements = await ZmesParser . fromZmes ( arrayBuffer ) ;
4947 console . log ( measurements ) ;
5048 const container = document . getElementById ( 'results' ) ;
5149 container . innerHTML = '' ;
Original file line number Diff line number Diff line change 2020 " src"
2121 ],
2222 "scripts" : {
23- "build" : " npm run tsc && cheminfo-build --entry lib/index.js --root ZmesParser && cp node_modules/@sqlite.org/sqlite-wasm/dist/sqlite3.wasm dist/ " ,
23+ "build" : " npm run tsc && cheminfo-build --entry lib/index.js --root ZmesParser" ,
2424 "check-types" : " tsc --noEmit" ,
2525 "clean" : " rimraf coverage lib" ,
2626 "eslint" : " eslint ." ,
3939 "zmes-parser" : " ^1.0.0"
4040 },
4141 "devDependencies" : {
42- "@sqlite.org/sqlite-wasm" : " ^3.51.2-build6" ,
4342 "@types/node" : " ^25.3.0" ,
4443 "@vitest/coverage-v8" : " ^4.0.18" ,
4544 "@zakodium/tsconfig" : " ^1.0.2" ,
You can’t perform that action at this time.
0 commit comments