How to add path folder to github workflows CI Sometimes when you try to use a command and Bash displays the Command not found error, it might be because the pro
Sometimes when you try to use a command and Bash displays the "Command not found" error, it might be because the program is not installed on your system. Correct this by installing a software package containing the command and add them into PATH enviroment variable.
In Github Workflows also has ability to add PATH enviroment variable. below is sample codes:
add ~/.local/bin to PATH CI
- name: add ~/.local/bin to PATH
shell: bash
run: |
echo "${HOME}/.local/bin" >> $GITHUB_PATH
add CI PATH ./node_modules/.bin
- name: add ./node_modules/.bin to PATH
shell: bash
run: |
echo "${GITHUB_WORKSPACE}/node_modules/.bin" >> $GITHUB_PATH