diff --git a/.github/workflows/build-assets.yml b/.github/workflows/build-assets.yml index 217764e5ab..78e0375c8a 100644 --- a/.github/workflows/build-assets.yml +++ b/.github/workflows/build-assets.yml @@ -25,7 +25,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - name: build file - run: npm ci && npm run build:all + run: yarn && npm run build:all - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index d344468142..feebc41a3c 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -11,7 +11,7 @@ jobs: with: node-version: '14' cache: 'npm' - - run: npm ci + - run: yarn - name: Lint run: | npm run lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8fae4de5bc..a2731270f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm ci + - run: yarn - run: npm run jest env: REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}/ diff --git a/docs/install/README.md b/docs/install/README.md index 93e26e2cb0..7363ae1902 100644 --- a/docs/install/README.md +++ b/docs/install/README.md @@ -173,7 +173,7 @@ $ cd RSSHub $ npm ci --production ``` -或 `yarnv1` (不推荐) +或 `yarn` ```bash $ yarn install --production diff --git a/scripts/ansible/rsshub.yaml b/scripts/ansible/rsshub.yaml index aa78b0aaa1..32a5d1a33b 100644 --- a/scripts/ansible/rsshub.yaml +++ b/scripts/ansible/rsshub.yaml @@ -83,7 +83,7 @@ dest: /home/rsshub/app update: yes - name: Install repo dependencies - command: npm ci --production + command: yarn install --production args: chdir: /home/rsshub/app environment: