SaltyMonkey лет назад: 6
Родитель
Сommit
466e68f63e
3 измененных файлов с 8 добавлено и 7 удалено
  1. 6 5
      .github/workflows/ci.yml
  2. 1 1
      fpsManager.js
  3. 1 1
      package.json

+ 6 - 5
.github/workflows/ci.yml

@@ -12,13 +12,14 @@ jobs:
       uses: actions/setup-node@v1
       with:
         node-version: 12
-    - name: Lint source code
-      env:
-        CI: true
+    - name: Install deps
       run: |
           npm ci
-          ./node_modules/.bin/eslint **/*.js --fix
-          npm ci --only=production
+          npm install -g eslint
+    - name: Lint
+      run: npm run lint
+    - name: Cleanup
+      run: npm ci --only=production
     - name: Generate manifest
       run: npm run manifest
     - name: Commit changes

+ 1 - 1
fpsManager.js

@@ -21,7 +21,7 @@
 const msg = {
 	"proxyWarning": "Proxy runtime detected. Proper work not guaranteed.",
 	"runtimeWarning": "Outdated runtime detected. Proper work not guaranteed."
-	"runtimeOld": "Runtime is so old"
+	"runtimeOlds": "Runtime is so old"
 };
 
 const units = [

+ 1 - 1
package.json

@@ -7,7 +7,7 @@
     "node": ">=12.4.0"
   },
   "scripts": {
-    "lint": "./node_modules/.bin/eslint **/*.js --fix",
+    "lint": "eslint **/*.js --fix",
     "version": "auto-changelog --package && git add CHANGELOG.md",
     "manifest": "node ./.manifest.js"
   },