jenkey2011 / vuepress-deploy

A GitHub Action to build and deploy Vuepress sites to GitHub Pages
MIT License
145 stars 52 forks source link

The engine "node" is incompatible with this module. Expected version ">= 18". Got "16.19.1" #38

Open ben0222 opened 6 months ago

ben0222 commented 6 months ago

Describe the bug

The engine "node" is incompatible with this module. Expected version ">= 18". Got "16.19.1"

Reproduce deploy-docs.yml

name: Build and Deploy
on: [push]
jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@master

    - name: Vuepress deploy
      uses: jenkey2011/vuepress-deploy@master
      env:
        ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
        # TARGET_REPO: username/repo not nesessary
        TARGET_BRANCH: gh-pages
        BUILD_SCRIPT: yarn && yarn build
        BUILD_DIR: blog/.vuepress/dist/

Expected behavior

Node version >=18

Screenshots

Snipaste_2024-03-07_22-29-26

Additional Comments

Could you update the node version? Thanks!

mahula commented 5 months ago

Hello @ben0222, we were also faced with WARN EBADENGINE Unsupported engine warnings related to the Docker image's Node version v16.19.1 while our projects' dependencies require higher versions. Since this repo des not seem to be maintained anymore, we forked it and updated the Github Action's docker file node version to 20.12.1, which meets our requirements. We will continue to maintain int to keep this action current and useful You can find it here. Please give it a try and give feedback, how it works for your projects. Kind regards, @mahula from @IT4Change