Skip to content

Action failing since package-manager-cache added #1351

@glassesUSA

Description

@glassesUSA

Description:
The addition of package-manager-cache broke my workflows with installing PNPM.

Action version:
master

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
pnpm@10.9.0

Repro steps:
The action fails when trying to install dependencies using pnpm with the error Error: Unable to locate executable file: pnpm. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

name: Setup workflow
description: |
  This action sets up the environment for the project by installing dependencies and configuring Node.js.

inputs:
  GH_TOKEN:
    description: "GitHub token"
    required: true
  NODE_VERSION:
    description: "Node.js version"
    required: false
    default: "20"

runs:
  using: "composite"
  steps:
    - uses: rtCamp/action-cleanup@master
    - uses: actions/checkout@master
    - uses: actions/setup-node@master
      with:
        node-version: ${{ inputs.NODE_VERSION }}
        registry-url: https://npm.pkg.github.com/
        scope: '@optimaxdev'
    - name: Install pnpm
      uses: pnpm/action-setup@v4

    - name: Use Node.js ${{ inputs.NODE_VERSION }}
      uses: actions/setup-node@v4
      with:
        node-version: ${{ inputs.NODE_VERSION }}
        cache: 'pnpm'

    - name: Install dependencies
      run: pnpm i
      shell: bash
      

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions