Skip to content

Commit 1fa553f

Browse files
committed
ci: #1 Could not find module remark-preset-lint-recommended
1 parent d4f8515 commit 1fa553f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Diff for: .github/workflows/ci.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ jobs:
1414
with:
1515
node-version: '14'
1616

17-
- name: Prepare
18-
run: yarn global add lint-md-cli remark-cli remark-preset-lint-recommended fnlint
19-
2017
- name: Checkout
2118
uses: actions/checkout@v2
2219

20+
# @coding-operation/public-component-web is a private package.
21+
# remove all packages, or install would fail.
22+
- name: Prepare
23+
run: |
24+
rm package.json yarn.lock
25+
yarn add lint-md-cli remark-cli remark-preset-lint-recommended fnlint
26+
2327
- name: Get Diff Action
2428
uses: technote-space/[email protected]
2529
with:
@@ -30,6 +34,6 @@ jobs:
3034
- name: Lint
3135
if: env.GIT_DIFF
3236
run: |
33-
remark -f ${{ env.GIT_DIFF }}
34-
lint-md ${{ env.GIT_DIFF }}
35-
fnlint -c .fnlint.json
37+
yarn remark -f ${{ env.GIT_DIFF }}
38+
yarn lint-md ${{ env.GIT_DIFF }}
39+
yarn fnlint -c .fnlint.json

0 commit comments

Comments
 (0)