From c00d89e86a8f2385b195a0bd4c3f106ba059e148 Mon Sep 17 00:00:00 2001 From: Dafnik Date: Thu, 2 Jul 2026 18:22:43 +0200 Subject: [PATCH 1/3] docs: add new input --- README.md | 3 ++- action.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 55adfe1..6d02c99 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,8 @@ jobs: | 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.
It also emits such aliases as lts, latest, nightly and canary builds.
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.
Examples: .nvmrc, .node-version, .tool-versions.
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 | diff --git a/action.yml b/action.yml index d62e663..570f771 100644 --- a/action.yml +++ b/action.yml @@ -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.' @@ -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: From 3f8dd1cbe8fdeb551ddacce64cbfb75ecefcb5bf Mon Sep 17 00:00:00 2001 From: Dafnik Date: Thu, 2 Jul 2026 18:22:53 +0200 Subject: [PATCH 2/3] style: format --- test/test-package-version-manager/pnpm-lock.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/test-package-version-manager/pnpm-lock.yaml b/test/test-package-version-manager/pnpm-lock.yaml index d9774c7..40062ef 100644 --- a/test/test-package-version-manager/pnpm-lock.yaml +++ b/test/test-package-version-manager/pnpm-lock.yaml @@ -5,7 +5,6 @@ settings: excludeLinksFromLockfile: false importers: - .: devDependencies: '@types/node': @@ -13,10 +12,8 @@ importers: version: 18.15.11 packages: - '@types/node@18.15.11': resolution: {integrity: sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==} snapshots: - '@types/node@18.15.11': {} From c9c4645b9eb9abc26f89a66555439ab8511eedcb Mon Sep 17 00:00:00 2001 From: Dafnik Date: Thu, 2 Jul 2026 18:26:34 +0200 Subject: [PATCH 3/3] chore: update to pnpm 11 --- .github/workflows/test.yml | 14 +++++++------- test/.node-version | 2 +- test/pnpm-lock.yaml | 3 --- test/test-package-version-manager/package.json | 2 +- 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e60725..6642df8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: node: [22, 24] - pnpm: [9, 10] + pnpm: [10, 11] steps: - uses: actions/checkout@v7 - uses: ./ @@ -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 @@ -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 @@ -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: @@ -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 @@ -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 @@ -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 diff --git a/test/.node-version b/test/.node-version index 33206cb..8753012 100644 --- a/test/.node-version +++ b/test/.node-version @@ -1 +1 @@ -v22.0.0 +v24.0.0 diff --git a/test/pnpm-lock.yaml b/test/pnpm-lock.yaml index 92a6bb0..73ca1ed 100644 --- a/test/pnpm-lock.yaml +++ b/test/pnpm-lock.yaml @@ -5,7 +5,6 @@ settings: excludeLinksFromLockfile: false importers: - .: devDependencies: '@types/node': @@ -13,7 +12,6 @@ importers: version: 24.9.2 packages: - '@types/node@24.9.2': resolution: {integrity: sha512-uWN8YqxXxqFMX2RqGOrumsKeti4LlmIMIyV0lgut4jx7KQBcBiW6vkDtIBvHnHIquwNfJhk8v2OtmO8zXWHfPA==} @@ -21,7 +19,6 @@ packages: resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} snapshots: - '@types/node@24.9.2': dependencies: undici-types: 7.16.0 diff --git a/test/test-package-version-manager/package.json b/test/test-package-version-manager/package.json index 4fa1332..e34b764 100644 --- a/test/test-package-version-manager/package.json +++ b/test/test-package-version-manager/package.json @@ -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": [],