Compare commits

..

6 Commits

Author SHA1 Message Date
Thai Pangsakulyanont
8cc2f6fe67
Merge a3d5f0afbc into 218cb35941 2023-07-25 14:17:19 +07:00
Khải
218cb35941
Merge pull request #69 from zakuro9715/zakuro9715-patch-2
Remove corepack url in error message
2023-07-25 14:16:42 +07:00
Khải
3723f63bb4
Merge pull request #90 from pnpm/optional-version
feat: make version actually optional
2023-07-25 14:05:04 +07:00
khai96_
849d884800 feat: make version actually optional
closes https://github.com/pnpm/action-setup/issues/85
2023-07-25 14:01:28 +07:00
khai96_
f92eb0edb6 docs: update pnpm version in readme
fixes https://github.com/pnpm/action-setup/issues/89
2023-07-25 13:50:35 +07:00
zakuro
65db188e28
Remove corepack url in error message 2022-11-09 06:54:12 +09:00
3 changed files with 4 additions and 3 deletions

View File

@ -64,7 +64,7 @@ jobs:
steps: steps:
- uses: pnpm/action-setup@v2 - uses: pnpm/action-setup@v2
with: with:
version: 6.0.2 version: 8
``` ```
### Install pnpm and a few npm packages ### Install pnpm and a few npm packages
@ -83,7 +83,7 @@ jobs:
- uses: pnpm/action-setup@v2 - uses: pnpm/action-setup@v2
with: with:
version: 6.0.2 version: 8
run_install: | run_install: |
- recursive: true - recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies] args: [--frozen-lockfile, --strict-peer-dependencies]

View File

@ -6,6 +6,7 @@ branding:
inputs: inputs:
version: version:
description: Version of pnpm to install description: Version of pnpm to install
required: false
dest: dest:
description: Where to store pnpm files description: Where to store pnpm files
required: false required: false

View File

@ -49,7 +49,7 @@ Otherwise, please specify the pnpm version in the action configuration.`)
throw new Error(`No pnpm version is specified. throw new Error(`No pnpm version is specified.
Please specify it by one of the following ways: Please specify it by one of the following ways:
- in the GitHub Action config with the key "version" - in the GitHub Action config with the key "version"
- in the package.json with the key "packageManager" (See https://nodejs.org/api/corepack.html)`) - in the package.json with the key "packageManager"`)
} }
if (!packageManager.startsWith('pnpm@')) { if (!packageManager.startsWith('pnpm@')) {