SaltyMonkey лет назад: 6
Родитель
Сommit
8124364788
2 измененных файлов с 6 добавлено и 1 удалено
  1. 4 0
      .github/workflows/ci.yml
  2. 2 1
      package.json

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

@@ -13,14 +13,18 @@ jobs:
       with:
         node-version: 12
     - name: Lint source code
+      env:
+        CI: true
       run: |
           npm ci
           npm run lint
+          npm run lint-info
           npm ci --only=production
     - name: Generate manifest
       run: npm run manifest
     - name: Commit changes
       run: |
+          [[ `git status --porcelain` ]] || exit
           git config --global core.autocrlf false
           git config --global user.name 'SaltyMonkey'
           git config --global user.email 'SaltyMonkey@users.noreply.github.com'

+ 2 - 1
package.json

@@ -1,5 +1,5 @@
 {
-  "name": "ngfps",
+  "name": "FPS-Manager",
   "version": "0.0.1",
   "description": "",
   "main": "./fpsManager.js",
@@ -8,6 +8,7 @@
   },
   "scripts": {
     "lint": "eslint **/*.js",
+    "lint-info": "eslint -h",
     "version": "auto-changelog --package && git add CHANGELOG.md",
     "manifest": "node ./.manifest.js"
   },