浏览代码

Add npm pack CI check

Leszek Wiesner 4 年之前
父节点
当前提交
1425bd5452
共有 1 个文件被更改,包括 12 次插入0 次删除
  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