Skip to content

pnpm gives wrong version #231

@BenjaminBrienen

Description

@BenjaminBrienen
 ERR_PNPM_UNSUPPORTED_ENGINE  Unsupported environment (bad pnpm and/or Node.js version)

Your pnpm version is incompatible with "/home/runner/work/wgsl-analyzer/wgsl-analyzer/editors/code".

Expected version: ^10.33.0
Got: 11.0.0-beta.4-1

package.json:

...
	"engines": {
		"vscode": "^1.115.0",
		"pnpm": "^10.33.0"
	},
...

workflow:

env:
  PNPM_VERSION: "10.33.0"
...
      - name: Set up Node.js
        uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
        with:
          node-version: 24

      - name: Install pnpm
        uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6.0.0
        with:
          package_json_file: ./editors/code/package.json
          version: ${{ env.PNPM_VERSION }}
...
      - name: Update engines.vscode
        run: |
          pnpm dlx json -I -f ./editors/code/package.json -e "this.engines = this.engines || {}; this.engines.vscode = '^${STEPS_TYPES_VERSION_OUTPUTS_VERSION}'" # error is here
          pnpm --dir editors/code install --frozen-lockfile
          pnpm --dir editors/code run format
        env:
          STEPS_TYPES_VERSION_OUTPUTS_VERSION: ${{ steps.types-version.outputs.version }}

the run:
https://github.com/wgsl-analyzer/wgsl-analyzer/actions/runs/24618186327/job/71984008282?pr=1028

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions