Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js 16 deprecation warning #25

Open
wiegertschouten opened this issue May 27, 2024 · 0 comments
Open

Node.js 16 deprecation warning #25

wiegertschouten opened this issue May 27, 2024 · 0 comments

Comments

@wiegertschouten
Copy link

Bug Description
I'm getting a warning on every run, saying the following:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, SamKirkland/web-deploy@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

My Action Config

on: 
  push:
    branches:
      - staging
name: 🏗️ Deploy staging
jobs:
  web-deploy:
    name: 🚀 Deploy
    runs-on: ubuntu-latest
    steps:
    - name: 🚚 Get Latest Code
      uses: actions/checkout@v3

    - name: 🧶 Setup Node
      uses: actions/setup-node@v4
      with:
        node-version: 20
        cache: 'npm'

    - name: 📦 Install Dependencies
      run: npm install

    - name: 🏗️ Build assets
      run: npm run build

    - name: 📂 Sync Files
      uses: SamKirkland/web-deploy@v1
      with:
        target-server: ${{ vars.DEPLOY_HOST }}
        remote-user: ${{ vars.DEPLOY_USER }}
        destination-path: ${{ vars.DEPLOY_PATH_STAGING }}
        private-ssh-key: ${{ secrets.DEPLOY_KEY }}
        rsync-options: --archive --verbose --compress --human-readable --progress --delete-after --exclude=.git* --exclude=.git/ --exclude=README.md --exclude=readme.md --exclude=.gitignore --exclude=node_modules --exclude=.parcel-cache/

The FTP Deploy action was recently updated to Node 20, is this also possible for Web Deploy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant