diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 0702ee6f4458..a54971e3cca6 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,6 +1,12 @@ name: Node CI -on: [push, pull_request] +on: + push: + branches: + - next + pull_request: + branches: + - next jobs: build: diff --git a/package.json b/package.json index 1dd74bde7d5d..d7b96690956e 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "type": "git", "url": "git+https://github.com/NervJS/taro.git" }, - "//lint-staged": { + "lint-staged": { "*.{js,jsx}": [ "eslint --fix", "git add" @@ -34,7 +34,7 @@ "husky": { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", - "//pre-commit": "lint-staged" + "pre-commit": "lint-staged" } }, "keywords": [