[DOCS] Use Node 16 (#1925)

* [DOCS] Downgrade Node to 16.x and page speed criteria to 60
This commit is contained in:
Florian authored and GitHub committed 2024-04-04 20:04:06 -05:00
1 parent 781f7af90c
commit bf70508318
1 file changed
+7 -7
+7 -7
View File
@@ -9,13 +9,13 @@ jobs:
if: github.repository_owner == '1technophile' if: github.repository_owner == '1technophile'
name: Build and upload Assets to Release name: Build and upload Assets to Release
steps: steps:
- uses: actions/checkout@v4.0.0 - uses: actions/checkout@v3
- uses: benjlevesque/short-sha@v3.0 - uses: benjlevesque/short-sha@v2.1
id: short-sha id: short-sha
with: with:
length: 6 length: 6
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5.0.0 uses: actions/setup-python@v4
with: with:
python-version: "3.7" python-version: "3.7"
- name: Install dependencies - name: Install dependencies
@@ -41,9 +41,9 @@ jobs:
sudo apt install rename sudo apt install rename
./scripts/prepare_deploy.sh ./scripts/prepare_deploy.sh
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v4.0.1 uses: actions/setup-node@v3
with: with:
node-version: "20.x" node-version: "16.x"
- name: Download Common Config - name: Download Common Config
run: | run: |
curl -o docs/.vuepress/public/commonConfig.js https://www.theengs.io/commonConfig.js curl -o docs/.vuepress/public/commonConfig.js https://www.theengs.io/commonConfig.js
@@ -52,7 +52,7 @@ jobs:
python ./scripts/gen_wu.py --dev python ./scripts/gen_wu.py --dev
npm run docs:build npm run docs:build
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3.9.3 uses: peaceiris/actions-gh-pages@v3
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vuepress/dist publish_dir: ./docs/.vuepress/dist
@@ -63,5 +63,5 @@ jobs:
id: psi id: psi
with: with:
url: "https://docs.openmqttgateway.com/dev/" url: "https://docs.openmqttgateway.com/dev/"
threshold: 65 threshold: 60
key: ${{ secrets.APIKEY }} key: ${{ secrets.APIKEY }}