From a2c0650c0e6e87f093e0230460c233b9e51595ee Mon Sep 17 00:00:00 2001 From: miya Date: Thu, 10 Aug 2023 19:10:26 +0800 Subject: [PATCH] Revert "chore: upgrade Node.js version and other packages" This reverts commit 3b0094a7125ba3567bbb7f827d11d6b2e62065fa. --- .github/workflows/WebPageToMarkdown.yml | 2 +- .github/workflows/main.yml | 6 +++--- README.md | 2 +- package.json | 9 ++++----- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/WebPageToMarkdown.yml b/.github/workflows/WebPageToMarkdown.yml index 2ac3e7515..4be220993 100644 --- a/.github/workflows/WebPageToMarkdown.yml +++ b/.github/workflows/WebPageToMarkdown.yml @@ -21,7 +21,7 @@ jobs: fi; shell: bash - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v2 with: ref: ${{ github.head_ref }} - name: Crawl pages and generate Markdown files diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8fb896837..d70ba03a1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,11 +8,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v2 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v2 with: - node-version: 'lts/*' + node-version: '14' - name: Install & Lint run: | npm install diff --git a/README.md b/README.md index 61a9e278d..b252413f0 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ To use Linters locally by running these commands shown below: cd ~/Desktop git clone https://github.com/freeCodeCamp/chinese.git cd chinese -npm install && npm run prepare +npm install # Every time npm test ``` diff --git a/package.json b/package.json index 078bc9b9d..182dbed6f 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,10 @@ "url": "https://github.com/freeCodeCamp/news-translation/issues" }, "devDependencies": { - "@lint-md/cli": "^2.0.0", - "husky": "^8.0.3", - "lint-staged": "^13.2.3", - "prettier": "^3.0.0" + "husky": "^4.3.0", + "lint-md-cli": "^0.1.2", + "lint-staged": "^10.5.4", + "prettier": "^2.2.1" }, "prettier": { "singleQuote": true, @@ -25,7 +25,6 @@ "*.md": "lint-md --fix" }, "scripts": { - "prepare": "husky install", "lint": "lint-md chinese/**/*.md", "format": "lint-md chinese/**/*.md --fix", "test": "lint-staged"