Sfoglia il codice sorgente

Add npm pack CI check

Leszek Wiesner 4 anni fa
parent
commit
1425bd5452
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  1. 12 0
      .github/workflows/joystream-types.yml

+ 12 - 0
.github/workflows/joystream-types.yml

@@ -18,6 +18,12 @@ jobs:
       run: |
         yarn install --frozen-lockfile
         yarn workspace @joystream/types checks
+    - name: npm pack test
+      run: |
+        cd types
+        npm pack | tail -1 | xargs tar xzf
+        cd package && npm install
+        node ./index.js
 
   types_checks_osx:
     name: MacOS Checks
@@ -35,3 +41,9 @@ jobs:
       run: |
         yarn install --frozen-lockfile --network-timeout 120000
         yarn workspace @joystream/types checks
+    - name: npm pack test
+      run: |
+        cd types
+        npm pack | tail -1 | xargs tar xzf
+        cd package && npm install
+        node ./index.js