Skip to content

Commit

Permalink
$mol_dump_lib: publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Jul 11, 2023
1 parent a20b036 commit 5b80601
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 6 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/mol_dump_lib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: mol_dump_lib

on:
workflow_dispatch:
push:
branches:
- master
paths:
- '.github/workflows/mol_dump_lib.yml'
- 'dump/**'
- 'build/**'
pull_request:
schedule:
- cron: "0 7 * * *"

jobs:
build:

runs-on: ubuntu-latest

steps:

- name: Build apps
uses: hyoo-ru/mam_build@master2
with:
package: mol
modules: dump/lib

- uses: JS-DevTools/npm-publish@v1
if: ${{ github.ref == 'refs/heads/master' }}
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
package: ./mol/dump/lib/-/package.json
11 changes: 6 additions & 5 deletions dump/demo/demo.view.tree
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
$mol_dump_demo $mol_example_small
title \Attach files an show them
sub /
<= Dump_short $mol_dump_value
value <= value null
<= Dump_long $mol_dump_value
value <= value null
prototypes true
<= Dump_list $mol_list rows /
<= Dump_short $mol_dump_value
value <= value null
<= Dump_long $mol_dump_value
value <= value null
prototypes true
tags /
\dump
\json
Expand Down
2 changes: 1 addition & 1 deletion dump/value/value.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace $.$$ {

if( value instanceof Map ) {
for( const [ key, val ] of value ) {
res.push([ key, '🡒', val ])
res.push([ key, '', val ])
}
}

Expand Down

0 comments on commit 5b80601

Please sign in to comment.