浏览代码

ci: fix ci

Evan You 3 年之前
父节点
当前提交
eb20b8228f
共有 2 个文件被更改,包括 3 次插入5 次删除
  1. 1 4
      .github/workflows/ci.yml
  2. 2 1
      scripts/config.js

+ 1 - 4
.github/workflows/ci.yml

@@ -67,7 +67,7 @@ jobs:
       - name: Run transition tests
         run: pnpm run test:transition
 
-  lint-and-test-dts:
+  type-test:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
@@ -86,8 +86,5 @@ jobs:
       - name: Run srouce type check
         run: pnpm run ts-check
 
-      - name: Run eslint
-        run: pnpm run lint
-
       - name: Run type declaration tests
         run: pnpm run test:types

+ 2 - 1
scripts/config.js

@@ -238,7 +238,8 @@ function genConfig(name) {
 
   // built-in vars
   const vars = {
-    __VERSION__: version
+    __VERSION__: version,
+    __DEV__: `process.env.NODE_ENV !== 'production'`
   }
   // feature flags
   Object.keys(featureFlags).forEach(key => {