Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
node: [22, 24]
pnpm: [9, 10]
pnpm: [10, 11]
steps:
- uses: actions/checkout@v7
- uses: ./
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
- uses: actions/checkout@v7
- uses: ./
with:
pnpm: 9
pnpm: 11
cwd: 'test'
node-file: '.node-version'
install-ignore-scripts: true
Expand All @@ -63,7 +63,7 @@ jobs:
run: echo "VERSION=$(node -v)" >> $GITHUB_OUTPUT

- name: fail on wrong version (${{ steps.check-node-version.outputs.VERSION }})
if: ${{ steps.check-node-version.outputs.VERSION != 'v22.0.0' }}
if: ${{ steps.check-node-version.outputs.VERSION != 'v24.0.0' }}
run: exit 1

- name: Check pnpm version
Expand All @@ -74,7 +74,7 @@ jobs:
echo "PNPM_VERSION_FIRST_PART=$PNPM_VERSION_FIRST_PART" >> $GITHUB_OUTPUT

- name: Fail on wrong pnpm version (${{ steps.check-pnpm-version.outputs.PNPM_VERSION_FIRST_PART }})
if: ${{ steps.check-pnpm-version.outputs.PNPM_VERSION_FIRST_PART != '9' }}
if: ${{ steps.check-pnpm-version.outputs.PNPM_VERSION_FIRST_PART != '11' }}
run: exit 1

test-package-version-manager:
Expand All @@ -83,7 +83,7 @@ jobs:
- uses: actions/checkout@v7
- uses: ./
with:
node: 22
node: 24
cwd: 'test/test-package-version-manager'
install-ignore-scripts: true

Expand All @@ -95,7 +95,7 @@ jobs:
echo "NODE_VERSION_FIRST_PART=$NODE_VERSION_FIRST_PART" >> $GITHUB_OUTPUT

- name: fail on wrong version (${{ steps.check-node-version.outputs.NODE_VERSION_FIRST_PART }})
if: ${{ steps.check-node-version.outputs.NODE_VERSION_FIRST_PART != 'v22' }}
if: ${{ steps.check-node-version.outputs.NODE_VERSION_FIRST_PART != 'v24' }}
run: exit 1

- name: Check pnpm version
Expand All @@ -106,5 +106,5 @@ jobs:
echo "PNPM_VERSION_FIRST_PART=$PNPM_VERSION_FIRST_PART" >> $GITHUB_OUTPUT

- name: Fail on wrong pnpm version (${{ steps.check-pnpm-version.outputs.PNPM_VERSION_FIRST_PART }})
if: ${{ steps.check-pnpm-version.outputs.PNPM_VERSION_FIRST_PART != '9' }}
if: ${{ steps.check-pnpm-version.outputs.PNPM_VERSION_FIRST_PART != '11' }}
run: exit 1
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
<!-- prettier-ignore-start -->
| Inputs | Default value | Description |
|--------------------------|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `pnpm` | | PNPM version to install |
| `pnpm` | | PNPM version to install (leave empty to read `packageManager` configuration of your `package_file`.) |
| `package_file` | `package.json` | File path to the `package.json` to read `packageManager` configuration (also supports `package.yml`). Works in conjunction with `cwd` input. |
| `node` | `24` | Version Spec of the version to use in SemVer notation.<br /> It also emits such aliases as lts, latest, nightly and canary builds.<br /> Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node |
| `node-file` | `''` | File containing the version Spec of the version to use.<br /> Examples: .nvmrc, .node-version, .tool-versions.<br /> If `node` and `node-file` are both provided the action will use the version from `node-file`. |
| `cwd` | `.` | Changes pnpm-lock.yaml lookup location and the work directory of "pnpm install" if enabled |
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ branding:

inputs:
pnpm:
description: 'PNPM version'
description: 'PNPM version to install (leave empty to read "packageManager" configuration of your "package_file"'
required: false
node:
description: 'Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.'
Expand All @@ -22,7 +22,7 @@ inputs:
required: false
default: '.'
package_file:
description: 'File path to the package.json to read "packageManager" configuration (also supports package.yml). Works in conjunction with "cwd"'
description: 'File path to the "package.json" to read "packageManager" configuration (also supports package.yml). Works in conjunction with "cwd" input.'
required: false
default: 'package.json'
install:
Expand Down
2 changes: 1 addition & 1 deletion test/.node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v22.0.0
v24.0.0
3 changes: 0 additions & 3 deletions test/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/test-package-version-manager/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "test-package-version-manager",
"version": "1.0.0",
"packageManager": "pnpm@9.11.0",
"packageManager": "pnpm@11.9.0",
"description": "",
"main": "index.js",
"keywords": [],
Expand Down
3 changes: 0 additions & 3 deletions test/test-package-version-manager/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.