Skip to content

Can't find node in PATH, trying to find a node binary on your system #18

@EmilienLeroy

Description

@EmilienLeroy

Version of the Action
v2.3.0

Describe the bug
I use husky to run lint before commit. An error appear when the action is call, i think is due to the pre commit.

To Reproduce
This my configuration :

name: Build

on:
  push:
    branches:
    - master

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [10.x]

    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: install
      run: npm install
      
    - name: build
      run: npm run build
      
    - name: Commit changed files
      uses: stefanzweifel/[email protected]
      with:
        commit_message: 📦 Build dist
        branch: master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        
    - name: Push changes
      uses: ad-m/github-push-action@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}

And i run this during the pre commit :

  "lint-staged": {
    "{src,test}/**/*.ts": [
      "prettier --write",
      "git add"
    ]
  },

Expected behavior
Run the pre commit before commit without error.

Screenshots
https://github.com/Kamiapp-fr/kami-collection/runs/322604011
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions