浏览代码

ref: update workflow

Sv443 1 年之前
父节点
当前提交
070b3fdc12
共有 1 个文件被更改,包括 7 次插入8 次删除
  1. 7 8
      .github/workflows/lint.yml

+ 7 - 8
.github/workflows/lint.yml

@@ -16,17 +16,16 @@ jobs:
       matrix:
         node-version: [18.x]
 
+    env:
+      CI: "true"
+
     steps:
-      - uses: actions/checkout@v3 # checkout latest commit
-      - name: Use Node.js ${{ matrix.node-version }} # set up Node.js
+      - uses: actions/checkout@v3
+      - name: Set up Node.js v${{ matrix.node-version }}
         uses: actions/setup-node@v2
         with:
           node-version: ${{ matrix.node-version }}
-      - name: Clean install of dependencies # runs the npm ci command to install all dependencies
+      - name: Install dependencies # runs the npm ci command to install from package-lock.json
         run: npm ci
-        env:
-          CI: "true"
-      - name: Lint # runs ESLint
+      - name: Build with tsc & lint
         run: npm run lint
-        env:
-          CI: "true"