File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 3737              run : deno publish --allow-dirty 
3838
3939            - name : Build for NPM 
40-               run : deno run -A build.ts 
40+               run : deno task build 
41+ 
42+             - name : Set up Node 
43+               uses : actions/setup-node@v4 
44+               with :
45+                   node-version : " 20.x" 
46+                   registry-url : " https://registry.npmjs.org" 
4147
4248            - name : NPM (dry run) 
4349              if : github.event_name == 'push' 
4652            - name : NPM (real) 
4753              if : github.event_name == 'release' 
4854              run : npm publish --provenance --access public 
55+               env :
56+                   NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}} 
Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ console.log(
1111
1212const  pkg  =  JSON . parse ( Deno . readTextFileSync ( './deno.json' ) ) 
1313
14- if   ( Deno . statSync ( './package.json' ) . isFile )  { 
14+ try  { 
1515    Deno . removeSync ( './package.json' ) 
16+ }  catch  {  // NOOP 
1617} 
1718
1819const  packageJson  =  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments