File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 99 steps :
1010 - uses : actions/checkout@v2
1111 - name : RoamJS Publish
12- uses : dvargas92495/roamjs-publish@0.1.16
12+ uses : dvargas92495/roamjs-publish@0.2.0
1313 with :
1414 token : ${{ secrets.ROAMJS_DEVELOPER_TOKEN }}
1515 source : .
1616 path : roam42
17+ release_token : ${{ secrets.ROAMJS_RELEASE_TOKEN }}
Original file line number Diff line number Diff line change 218218
219219
220220 menu += `<hr style="margin:0px; margin-top:5px; padding:0px">` ;
221- menu += `<li style="padding-left:10px;margin-top:5px"><span style="font-size:7pt;padding-left:15px;">
222- ${ roam42 . buildID }
221+ menu += `<li style="padding-left:10px;margin-top:5px"><span style="font-size:7pt;padding-left:15px;cursor:pointer;" onclick="roam42.roam42Menu.tippy[0].hide(); window.roamjs.extension.versioning.switch({id: 'roam42', currentVersion:' ${ roam42 . buildID } '}); ">
222+ Roam<sup>42</sup> ${ roam42 . buildID }
223223 </span></li>` ;
224224
225225 menu += `</ul></div>`
Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ if( typeof window.roam42 == 'undefined' ) {
2626 window . roam42 = { } ;
2727 const scriptVersionMatch = document . currentScript . src . match ( / r o a m 4 2 \/ ( \d \d \d \d - \d \d - \d \d - \d \d - \d \d ) \/ m a i n .j s / ) ;
2828 if ( scriptVersionMatch ) {
29- roam42 . buildID = `Roam<sup>42</sup> ${ scriptVersionMatch [ 1 ] } ` ;
29+ roam42 . buildID = scriptVersionMatch [ 1 ] ;
3030 } else {
3131 fetch ( 'https://api.roamjs.com/versions?limit=1&id=roam42' )
3232 . then ( r => r . json ( ) )
3333 . then ( ( { versions} ) => {
34- roam42 . buildID = `Roam<sup>42</sup> ${ versions [ 0 ] || 'Version Not Found' } ` ;
34+ roam42 . buildID = versions [ 0 ] || 'Version Not Found' ;
3535 } ) . catch ( ( ) => {
36- roam42 . buildID = 'Roam<sup>42</sup> Version Not Found' ;
36+ roam42 . buildID = 'Version Not Found' ;
3737 } )
3838 }
3939
@@ -77,7 +77,7 @@ if( typeof window.roam42 == 'undefined' ) {
7777
7878 ( async ( ) => {
7979
80-
80+ roam42 . loader . addScriptToPage ( 'roamjs-versioning' , 'https://roamjs.com/versioning.js' ) ;
8181 roam42 . loader . addScriptToPage ( 'libs' , roam42 . host + 'dist/libs.js' ) ;
8282 roam42 . loader . addCSSToPage ( 'cssLibs' , roam42 . host + 'dist/libs.css' ) ;
8383
You can’t perform that action at this time.
0 commit comments