File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 77  lib-test :
88    name : Lib tests 
99    runs-on : ubuntu-latest 
10+     env :
11+       wd : ./lib 
1012    if : startsWith(github.ref, 'refs/tags/lib-') 
1113    steps :
1214      - uses : actions/checkout@v2 
13-       - run : cd lib/ 
1415      - run : cargo test 
16+         working-directory : ${{env.wd}} 
1517
1618  lib-publish-npm :
1719    needs : lib-test 
1820    name : Lib publish npm 
1921    runs-on : ubuntu-latest 
22+     env :
23+       wd : ./lib 
2024    steps :
2125      - uses : actions/checkout@v2 
2226      - uses : actions/setup-node@v1 
2327        with :
2428          node-version : 12 
2529          registry-url : https://registry.npmjs.org/ 
26-       - run : cd lib/ 
27-       - run : cargo install wasm-pack 
30+       - run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh 
2831      - run : wasm-pack build -t web 
32+         working-directory : ${{env.wd}} 
2933      - run : wasm-pack publish 
34+         working-directory : ${{env.wd}} 
3035        env :
3136          NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }} 
3237
3338  lib-publish-crate :
3439    needs : lib-test 
3540    name : Lib publish crates.io 
3641    runs-on : ubuntu-latest 
42+     env :
43+       wd : ./lib 
3744    steps :
3845      - uses : actions/checkout@v2 
3946      - run : cargo login ${{ secrets.CRATES_TOKEN }} 
40-       - run : cargo publish 
47+       - run : cargo publish 
48+         working-directory : ${{env.wd}} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments