Skip to content

Commit

Permalink
fix: do not fallback to latest if pnpm version is missing (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Sep 7, 2023
1 parent 77952f1 commit 40ef06c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/nx-cloud-agents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ jobs:
if: steps.package_manager.outputs.name == 'pnpm'
uses: pnpm/action-setup@v2
with:
version: ${{ inputs.pnpm-version || 'latest' }}
version: ${{ inputs.pnpm-version }}
package_json_file: "${{ inputs.working-directory || github.workspace }}/package.json"

- name: Print node/npm/yarn versions
id: versions
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/nx-cloud-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ jobs:
if: steps.package_manager.outputs.name == 'pnpm'
uses: pnpm/action-setup@v2
with:
version: ${{ inputs.pnpm-version || 'latest' }}
version: ${{ inputs.pnpm-version }}
package_json_file: "${{ inputs.working-directory || github.workspace }}/package.json"

- name: Print node/npm/yarn versions
id: versions
Expand Down
3 changes: 2 additions & 1 deletion integration-tests/pnpm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@
"ts-jest": "29.1.0",
"ts-node": "10.9.1",
"typescript": "4.9.5"
}
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"private": true,
"version": "0.13.0",
"version": "0.13.1",
"description": "This package.json is here purely to control the version of the Action, in combination with https://github.com/JamesHenry/publish-shell-action"
}

0 comments on commit 40ef06c

Please sign in to comment.