mirror of
https://github.com/pnpm/action-setup.git
synced 2025-12-09 14:03:31 +08:00
Compare commits
146 Commits
fixing-win
...
refactor-r
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e1d3719bd | ||
|
|
e94b270858 | ||
|
|
ee7b8711bd | ||
|
|
3a0024f066 | ||
|
|
72f04517b7 | ||
|
|
41ff726559 | ||
|
|
f2b2b233b5 | ||
|
|
77504a59bc | ||
|
|
d648c2dd06 | ||
|
|
a7487c7e89 | ||
|
|
fff70888d0 | ||
|
|
6e3017af18 | ||
|
|
0cb0538c33 | ||
|
|
e303250a24 | ||
|
|
ac5bf11548 | ||
|
|
18ac635edf | ||
|
|
0d0b43217a | ||
|
|
0eb0e97082 | ||
|
|
23657c8550 | ||
|
|
5d79380f29 | ||
|
|
562dbbf611 | ||
|
|
00884bcdc5 | ||
|
|
fe02b34f77 | ||
|
|
bee1f099e5 | ||
|
|
ce859e384f | ||
|
|
2ab6dce4f5 | ||
|
|
e280758d01 | ||
|
|
129abb77bf | ||
|
|
a3252b78c4 | ||
|
|
1ee9c9d01d | ||
|
|
ebcfd6995d | ||
|
|
d2613e087f | ||
|
|
d928be8e0c | ||
|
|
d882d12c64 | ||
|
|
0b715c7ebb | ||
|
|
2ed49cbb02 | ||
|
|
218cb35941 | ||
|
|
3723f63bb4 | ||
|
|
849d884800 | ||
|
|
f92eb0edb6 | ||
|
|
b27f801bf9 | ||
|
|
11dd14d0c0 | ||
|
|
61eb8c655a | ||
|
|
65db188e28 | ||
|
|
0609f0983b | ||
|
|
7208fa2733 | ||
|
|
1bd00a2972 | ||
|
|
d5601fb603 | ||
|
|
bc06aa6030 | ||
|
|
cd2af74528 | ||
|
|
c8a150e137 | ||
|
|
ed0172a253 | ||
|
|
c3b53f6a16 | ||
|
|
21e88da200 | ||
|
|
fc3334fa11 | ||
|
|
d01953a678 | ||
|
|
3360b50db7 | ||
|
|
6f9e9a867a | ||
|
|
537643d491 | ||
|
|
f4129fb46e | ||
|
|
6e1964dde3 | ||
|
|
10693b3829 | ||
|
|
99ecd24520 | ||
|
|
958500fcab | ||
|
|
57b9359b4c | ||
|
|
ec1a8b444c | ||
|
|
73e15250cb | ||
|
|
10b4b0b462 | ||
|
|
5fa8980bf4 | ||
|
|
ae78e9abbe | ||
|
|
35ab4267a1 | ||
|
|
11ba3424e0 | ||
|
|
847a737d63 | ||
|
|
225f3bb4b0 | ||
|
|
777a50d72e | ||
|
|
e7c10c6fc5 | ||
|
|
a576a70bc6 | ||
|
|
1d51e20937 | ||
|
|
ad2b35ae0c | ||
|
|
d8ea532ac4 | ||
|
|
2270f39ef6 | ||
|
|
394c848db6 | ||
|
|
e13928ccc5 | ||
|
|
93bd5a123d | ||
|
|
9eb14dd77c | ||
|
|
eafb777c56 | ||
|
|
e6378df420 | ||
|
|
6ff6e97bc6 | ||
|
|
45d9c91ff6 | ||
|
|
15569a497d | ||
|
|
d70eebd14a | ||
|
|
3bf8acf16f | ||
|
|
3c2fe8c592 | ||
|
|
76cc04cd5e | ||
|
|
bcad811784 | ||
|
|
602b36f177 | ||
|
|
74a0fdc1a4 | ||
|
|
493e98ec5e | ||
|
|
646cdf4821 | ||
|
|
a1ba6cf5ae | ||
|
|
41b381a08b | ||
|
|
3236b209b5 | ||
|
|
2124926520 | ||
|
|
ba9826e81c | ||
|
|
7c4472dbcf | ||
|
|
0db7fb9961 | ||
|
|
aefcd1e623 | ||
|
|
b7b9d6344b | ||
|
|
7e61ea5847 | ||
|
|
3a2c7247e1 | ||
|
|
2a105263a5 | ||
|
|
9facd4db8e | ||
|
|
6c1466d327 | ||
|
|
b26427e53e | ||
|
|
086f5bd3b6 | ||
|
|
bdb2a5ee76 | ||
|
|
8e1abe543f | ||
|
|
af6247d08a | ||
|
|
f87c8a916e | ||
|
|
d6790970e0 | ||
|
|
fa62771e12 | ||
|
|
935101478d | ||
|
|
4abca36d2a | ||
|
|
56013f801f | ||
|
|
fb99aeb8e3 | ||
|
|
b78eaea668 | ||
|
|
83681c63a7 | ||
|
|
6eb237a86d | ||
|
|
b1febf84ed | ||
|
|
2546768411 | ||
|
|
8cdddb18c5 | ||
|
|
4457a83971 | ||
|
|
c8fc1974e1 | ||
|
|
291e58ad85 | ||
|
|
1790ca7f76 | ||
|
|
9a1617cf46 | ||
|
|
6fe65dc1af | ||
|
|
91d3d73121 | ||
|
|
7a5d08caa7 | ||
|
|
e373fffa0a | ||
|
|
bb24f595c2 | ||
|
|
d44b8c5e53 | ||
|
|
4b13327683 | ||
|
|
49ba4cbc60 | ||
|
|
9649109f2e | ||
|
|
087311f996 |
2
.gitattributes
vendored
2
.gitattributes
vendored
@@ -1,2 +1,2 @@
|
|||||||
* text=auto
|
* text=auto
|
||||||
dist/index.js -text
|
/dist/index.js binary
|
||||||
|
|||||||
14
.github/FUNDING.yml
vendored
14
.github/FUNDING.yml
vendored
@@ -1,12 +1,2 @@
|
|||||||
# These are supported funding model platforms
|
custom:
|
||||||
|
- https://opencollective.com/pnpm
|
||||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
|
||||||
patreon: khai96_
|
|
||||||
open_collective: # Collective unavailable
|
|
||||||
ko_fi: # Replace with a single Ko-fi username
|
|
||||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
||||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
||||||
liberapay: # Replace with a single Liberapay username
|
|
||||||
issuehunt: # disabled
|
|
||||||
otechie: # Replace with a single Otechie username
|
|
||||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
||||||
|
|||||||
7
.github/dependabot.yml
vendored
Normal file
7
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: github-actions
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
open-pull-requests-limit: 10
|
||||||
128
.github/workflows/test.yaml
vendored
128
.github/workflows/test.yaml
vendored
@@ -3,6 +3,7 @@ name: Test Action
|
|||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- workflow_dispatch
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test_default_inputs:
|
test_default_inputs:
|
||||||
@@ -14,19 +15,19 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
pnpm:
|
pnpm:
|
||||||
- 4.11.1
|
- 9.15.5
|
||||||
os:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- macos-latest
|
- macos-latest
|
||||||
- windows-latest
|
- windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run the action
|
- name: Run the action
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: 4.11.1
|
version: 9.15.5
|
||||||
|
|
||||||
- name: 'Test: which'
|
- name: 'Test: which'
|
||||||
run: which pnpm; which pnpx
|
run: which pnpm; which pnpx
|
||||||
@@ -34,8 +35,8 @@ jobs:
|
|||||||
- name: 'Test: install'
|
- name: 'Test: install'
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
test_explicit_inputs:
|
test_dest:
|
||||||
name: Test with explicit inputs
|
name: Test with dest
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
@@ -43,25 +44,132 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
pnpm:
|
pnpm:
|
||||||
- 4.11.1
|
- 9.15.5
|
||||||
os:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- macos-latest
|
- macos-latest
|
||||||
- windows-latest
|
- windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run the action
|
- name: Run the action
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: 4.11.1
|
version: 9.15.5
|
||||||
dest: ~/test/pnpm
|
dest: ~/test/pnpm
|
||||||
bin_dest: ~/test/pnpm/.bin
|
|
||||||
registry: http://registry.yarnpkg.com/
|
|
||||||
|
|
||||||
- name: 'Test: which'
|
- name: 'Test: which'
|
||||||
run: which pnpm && which pnpx
|
run: which pnpm && which pnpx
|
||||||
|
|
||||||
- name: 'Test: install'
|
- name: 'Test: install'
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
|
test_standalone:
|
||||||
|
name: Test with standalone
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macos-latest
|
||||||
|
- windows-latest
|
||||||
|
|
||||||
|
standalone:
|
||||||
|
- true
|
||||||
|
- false
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Run the action
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
version: 9.15.0
|
||||||
|
standalone: ${{ matrix.standalone }}
|
||||||
|
|
||||||
|
- name: install Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
# pnpm@7.0.0 is not compatible with Node.js 12
|
||||||
|
node-version: 12.22.12
|
||||||
|
|
||||||
|
- name: 'Test: which (pnpm)'
|
||||||
|
run: which pnpm
|
||||||
|
|
||||||
|
- name: 'Test: which (pnpx)'
|
||||||
|
if: matrix.standalone == false
|
||||||
|
run: which pnpx
|
||||||
|
|
||||||
|
- name: 'Test: install when standalone is true'
|
||||||
|
if: matrix.standalone
|
||||||
|
run: pnpm install
|
||||||
|
|
||||||
|
- name: 'Test: install when standalone is false'
|
||||||
|
if: matrix.standalone == false
|
||||||
|
# Since the default shell on windows runner is pwsh, we specify bash explicitly
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if pnpm install; then
|
||||||
|
echo "pnpm install should fail"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "pnpm install failed as expected"
|
||||||
|
fi
|
||||||
|
|
||||||
|
test_run_install:
|
||||||
|
name: 'Test with run_install (${{ matrix.run_install.name }}, ${{ matrix.os }})'
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
pnpm:
|
||||||
|
- 9.15.5
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macos-latest
|
||||||
|
- windows-latest
|
||||||
|
run_install:
|
||||||
|
- name: 'null'
|
||||||
|
value: 'null'
|
||||||
|
- name: 'empty object'
|
||||||
|
value: '{}'
|
||||||
|
- name: 'recursive'
|
||||||
|
value: |
|
||||||
|
recursive: true
|
||||||
|
- name: 'global'
|
||||||
|
value: |
|
||||||
|
args:
|
||||||
|
- --global
|
||||||
|
- --global-dir=./pnpm-global
|
||||||
|
- npm
|
||||||
|
- yarn
|
||||||
|
- name: 'array'
|
||||||
|
value: |
|
||||||
|
- {}
|
||||||
|
- recursive: true
|
||||||
|
- args:
|
||||||
|
- --global
|
||||||
|
- --global-dir=./pnpm-global
|
||||||
|
- npm
|
||||||
|
- yarn
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Run the action
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
version: 9.15.5
|
||||||
|
run_install: ${{ matrix.run_install.value }}
|
||||||
|
|
||||||
|
- name: 'Test: which'
|
||||||
|
run: which pnpm; which pnpx
|
||||||
|
|
||||||
|
- name: 'Test: install'
|
||||||
|
run: pnpm install
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,9 +2,12 @@ node_modules
|
|||||||
*.log
|
*.log
|
||||||
/dist/*
|
/dist/*
|
||||||
!/dist/index.js
|
!/dist/index.js
|
||||||
|
!/dist/pnpm.cjs
|
||||||
|
!/dist/worker.js
|
||||||
tmp
|
tmp
|
||||||
temp
|
temp
|
||||||
*.tmp
|
*.tmp
|
||||||
*.temp
|
*.temp
|
||||||
tmp.*
|
tmp.*
|
||||||
temp.*
|
temp.*
|
||||||
|
.pnpm-store
|
||||||
|
|||||||
147
README.md
147
README.md
@@ -1,24 +1,64 @@
|
|||||||
# Setup PNPM
|
> ## :warning: Upgrade from v2!
|
||||||
|
>
|
||||||
|
> The v2 version of this action [has stopped working](https://github.com/pnpm/action-setup/issues/135) with newer Node.js versions. Please, upgrade to the latest version to fix any issues.
|
||||||
|
|
||||||
Install PNPM package manager.
|
# Setup pnpm
|
||||||
|
|
||||||
|
Install pnpm package manager.
|
||||||
|
|
||||||
## Inputs
|
## Inputs
|
||||||
|
|
||||||
### `version`
|
### `version`
|
||||||
|
|
||||||
**Required** Version of PNPM to install.
|
Version of pnpm to install.
|
||||||
|
|
||||||
|
**Optional** when there is a [`packageManager` field in the `package.json`](https://nodejs.org/api/corepack.html).
|
||||||
|
|
||||||
|
otherwise, this field is **required** It supports npm versioning scheme, it could be an exact version (such as `6.24.1`), or a version range (such as `6`, `6.x.x`, `6.24.x`, `^6.24.1`, `*`, etc.), or `latest`.
|
||||||
|
|
||||||
### `dest`
|
### `dest`
|
||||||
|
|
||||||
**Optional** Where to store PNPM files.
|
**Optional** Where to store pnpm files.
|
||||||
|
|
||||||
### `bin_dest`
|
### `run_install`
|
||||||
|
|
||||||
**Optional** Where to store executables (`pnpm` and `pnpx` commands).
|
**Optional** (_default:_ `null`) If specified, run `pnpm install`.
|
||||||
|
|
||||||
### `registry`
|
If `run_install` is either `null` or `false`, pnpm will not install any npm package.
|
||||||
|
|
||||||
**Optional** Registry to download PNPM from.
|
If `run_install` is `true`, pnpm will install dependencies recursively.
|
||||||
|
|
||||||
|
If `run_install` is a YAML string representation of either an object or an array, pnpm will execute every install commands.
|
||||||
|
|
||||||
|
#### `run_install.recursive`
|
||||||
|
|
||||||
|
**Optional** (_type:_ `boolean`, _default:_ `false`) Whether to use `pnpm recursive install`.
|
||||||
|
|
||||||
|
#### `run_install.cwd`
|
||||||
|
|
||||||
|
**Optional** (_type:_ `string`) Working directory when run `pnpm [recursive] install`.
|
||||||
|
|
||||||
|
#### `run_install.args`
|
||||||
|
|
||||||
|
**Optional** (_type:_ `string[]`) Additional arguments after `pnpm [recursive] install`, e.g. `[--ignore-scripts, --strict-peer-dependencies]`.
|
||||||
|
|
||||||
|
### `cache`
|
||||||
|
|
||||||
|
**Optional** (_type:_ `boolean`, _default:_ `false`) Whether to cache the pnpm store directory.
|
||||||
|
|
||||||
|
### `cache_dependency_path`
|
||||||
|
|
||||||
|
**Optional** (_type:_ `string|string[]`, _default:_ `pnpm-lock.yaml`) File path to the pnpm lockfile, which contents hash will be used as a cache key.
|
||||||
|
|
||||||
|
### `package_json_file`
|
||||||
|
|
||||||
|
**Optional** (_type:_ `string`, _default:_ `package.json`) File path to the `package.json`/[`package.yaml`](https://github.com/pnpm/pnpm/pull/1799) to read "packageManager" configuration.
|
||||||
|
|
||||||
|
### `standalone`
|
||||||
|
|
||||||
|
**Optional** (_type:_ `boolean`, _default:_ `false`) When set to true, [@pnpm/exe](https://www.npmjs.com/package/@pnpm/exe), which is a Node.js bundled package, will be installed, enabling using `pnpm` without Node.js.
|
||||||
|
|
||||||
|
This is useful when you want to use a incompatible pair of Node.js and pnpm.
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
@@ -28,33 +68,100 @@ Expanded path of inputs#dest.
|
|||||||
|
|
||||||
### `bin_dest`
|
### `bin_dest`
|
||||||
|
|
||||||
Expanded path of inputs#bin_dest.
|
Location of `pnpm` and `pnpx` command.
|
||||||
|
|
||||||
## Usage example
|
## Usage example
|
||||||
|
|
||||||
|
### Install only pnpm without `packageManager`
|
||||||
|
|
||||||
|
This works when the repo either doesn't have a `package.json` or has a `package.json` but it doesn't specify `packageManager`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
runs-on: ubuntu-latest
|
install:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
- uses: pnpm/action-setup@v1.1.0
|
version: 10
|
||||||
with:
|
|
||||||
version: 4.11.1
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pnpm install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Install only pnpm with `packageManager`
|
||||||
|
|
||||||
|
Omit `version` input to use the version in the [`packageManager` field in the `package.json`](https://nodejs.org/api/corepack.html).
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
install:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
```
|
||||||
|
|
||||||
|
### Install pnpm and a few npm packages
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
install:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 10
|
||||||
|
run_install: |
|
||||||
|
- recursive: true
|
||||||
|
args: [--strict-peer-dependencies]
|
||||||
|
- args: [--global, gulp, prettier, typescript]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Use cache to reduce installation time
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cache-and-install:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
name: Install pnpm
|
||||||
|
with:
|
||||||
|
version: 10
|
||||||
|
cache: true
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install
|
||||||
|
```
|
||||||
|
|
||||||
|
**Note:** You don't need to run `pnpm store prune` at the end; post-action has already taken care of that.
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
This action does not setup Node.js for you, use [actions/setup-node](https://github.com/actions/setup-node) yourself.
|
This action does not setup Node.js for you, use [actions/setup-node](https://github.com/actions/setup-node) yourself.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
[MIT](https://git.io/JfclH) © [Hoàng Văn Khải](https://github.com/KSXGitHub/)
|
[MIT](https://github.com/pnpm/action-setup/blob/master/LICENSE.md) © [Hoàng Văn Khải](https://github.com/KSXGitHub/)
|
||||||
|
|||||||
44
action.yml
44
action.yml
@@ -1,24 +1,42 @@
|
|||||||
name: Setup PNPM
|
name: Setup pnpm
|
||||||
description: Install PNPM package manager
|
description: Install pnpm package manager
|
||||||
branding:
|
branding:
|
||||||
icon: package
|
icon: package
|
||||||
color: orange
|
color: orange
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: Version of PNPM to install
|
description: Version of pnpm to install
|
||||||
required: true
|
required: false
|
||||||
dest:
|
dest:
|
||||||
description: Where to store PNPM files
|
description: Where to store pnpm files
|
||||||
required: false
|
required: false
|
||||||
default: ~/setup-pnpm
|
default: ~/setup-pnpm
|
||||||
|
run_install:
|
||||||
|
description: If specified, run `pnpm install`
|
||||||
|
required: false
|
||||||
|
default: 'null'
|
||||||
|
cache:
|
||||||
|
description: Whether to cache the pnpm store directory
|
||||||
|
required: false
|
||||||
|
default: 'false'
|
||||||
|
cache_dependency_path:
|
||||||
|
description: File path to the pnpm lockfile, which contents hash will be used as a cache key
|
||||||
|
required: false
|
||||||
|
default: 'pnpm-lock.yaml'
|
||||||
|
package_json_file:
|
||||||
|
description: File path to the package.json to read "packageManager" configuration. This path must be relative to the repository root (GITHUB_WORKSPACE).
|
||||||
|
required: false
|
||||||
|
default: 'package.json'
|
||||||
|
standalone:
|
||||||
|
description: When set to true, @pnpm/exe, which is a Node.js bundled package, will be installed, enabling using pnpm without Node.js.
|
||||||
|
required: false
|
||||||
|
default: 'false'
|
||||||
|
outputs:
|
||||||
|
dest:
|
||||||
|
description: Expanded path of inputs#dest
|
||||||
bin_dest:
|
bin_dest:
|
||||||
description: Where to store executables (pnpm and pnpx commands)
|
description: Location of `pnpm` and `pnpx` command
|
||||||
required: false
|
|
||||||
default: ~/setup-pnpm/.bin
|
|
||||||
registry:
|
|
||||||
description: Registry to download PNPM from
|
|
||||||
required: false
|
|
||||||
default: https://registry.npmjs.com
|
|
||||||
runs:
|
runs:
|
||||||
using: node12
|
using: node20
|
||||||
main: dist/index.js
|
main: dist/index.js
|
||||||
|
post: dist/index.js
|
||||||
|
|||||||
11
dist/index.js
vendored
11
dist/index.js
vendored
File diff suppressed because one or more lines are too long
220780
dist/pnpm.cjs
vendored
Normal file
220780
dist/pnpm.cjs
vendored
Normal file
File diff suppressed because one or more lines are too long
16625
dist/worker.js
vendored
Normal file
16625
dist/worker.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
21
package.json
21
package.json
@@ -3,18 +3,23 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build:ncc": "ncc build --minify --no-source-map-register --no-cache dist/tsc/index.js --out dist/",
|
"build:ncc": "ncc build --minify --no-source-map-register --no-cache dist/tsc/index.js --out dist/",
|
||||||
"build": "tsc && pnpm run build:ncc",
|
"build": "tsc && pnpm run build:ncc",
|
||||||
"start": "pnpm run build && sh ./run.sh"
|
"start": "pnpm run build && sh ./run.sh",
|
||||||
|
"update-pnpm-dist": "pnpm install && cp ./node_modules/pnpm/dist/pnpm.cjs ./dist/pnpm.cjs && cp ./node_modules/pnpm/dist/worker.js ./dist/worker.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"node-fetch": "^2.6.0",
|
"@actions/cache": "^4.1.0",
|
||||||
|
"@actions/core": "^1.10.1",
|
||||||
|
"@actions/exec": "^1.1.1",
|
||||||
|
"@actions/glob": "^0.5.0",
|
||||||
|
"@types/expand-tilde": "^2.0.2",
|
||||||
|
"@types/node": "^20.11.5",
|
||||||
"expand-tilde": "^2.0.2",
|
"expand-tilde": "^2.0.2",
|
||||||
"@actions/core": "^1.2.4",
|
"yaml": "^2.3.4",
|
||||||
"@types/expand-tilde": "^2.0.0",
|
"zod": "^3.22.4"
|
||||||
"@types/node-fetch": "^2.5.7",
|
|
||||||
"@types/node": "^13.13.5"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^3.8.3",
|
"@vercel/ncc": "^0.38.1",
|
||||||
"@zeit/ncc": "^0.22.1"
|
"pnpm": "^8.14.3",
|
||||||
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
842
pnpm-lock.yaml
generated
842
pnpm-lock.yaml
generated
@@ -1,122 +1,744 @@
|
|||||||
dependencies:
|
lockfileVersion: '9.0'
|
||||||
'@actions/core': 1.2.4
|
|
||||||
'@types/expand-tilde': 2.0.0
|
settings:
|
||||||
'@types/node': 13.13.5
|
autoInstallPeers: true
|
||||||
'@types/node-fetch': 2.5.7
|
excludeLinksFromLockfile: false
|
||||||
expand-tilde: 2.0.2
|
|
||||||
node-fetch: 2.6.0
|
importers:
|
||||||
devDependencies:
|
|
||||||
'@zeit/ncc': 0.22.1
|
.:
|
||||||
typescript: 3.8.3
|
|
||||||
lockfileVersion: 5.1
|
|
||||||
packages:
|
|
||||||
/@actions/core/1.2.4:
|
|
||||||
dev: false
|
|
||||||
resolution:
|
|
||||||
integrity: sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg==
|
|
||||||
/@types/expand-tilde/2.0.0:
|
|
||||||
dev: false
|
|
||||||
resolution:
|
|
||||||
integrity: sha512-17h/6MRHoetV2QVUVnUfrmaFCXNIFJ3uDJmXlklX2xDtlEb1W0OXLgP+qwND2Ibg/PtQfQi0vx19KGuPayjLiw==
|
|
||||||
/@types/node-fetch/2.5.7:
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 13.13.5
|
'@actions/cache':
|
||||||
form-data: 3.0.0
|
specifier: ^4.1.0
|
||||||
dev: false
|
version: 4.1.0
|
||||||
resolution:
|
'@actions/core':
|
||||||
integrity: sha512-o2WVNf5UhWRkxlf6eq+jMZDu7kjgpgJfl4xVNlvryc95O/6F2ld8ztKX+qu+Rjyet93WAWm5LjeX9H5FGkODvw==
|
specifier: ^1.10.1
|
||||||
/@types/node/13.13.5:
|
version: 1.11.1
|
||||||
dev: false
|
'@actions/exec':
|
||||||
resolution:
|
specifier: ^1.1.1
|
||||||
integrity: sha512-3ySmiBYJPqgjiHA7oEaIo2Rzz0HrOZ7yrNO5HWyaE5q0lQ3BppDZ3N53Miz8bw2I7gh1/zir2MGVZBvpb1zq9g==
|
version: 1.1.1
|
||||||
/@zeit/ncc/0.22.1:
|
'@actions/glob':
|
||||||
dev: true
|
specifier: ^0.5.0
|
||||||
|
version: 0.5.0
|
||||||
|
'@types/expand-tilde':
|
||||||
|
specifier: ^2.0.2
|
||||||
|
version: 2.0.2
|
||||||
|
'@types/node':
|
||||||
|
specifier: ^20.11.5
|
||||||
|
version: 20.17.17
|
||||||
|
expand-tilde:
|
||||||
|
specifier: ^2.0.2
|
||||||
|
version: 2.0.2
|
||||||
|
yaml:
|
||||||
|
specifier: ^2.3.4
|
||||||
|
version: 2.7.0
|
||||||
|
zod:
|
||||||
|
specifier: ^3.22.4
|
||||||
|
version: 3.24.1
|
||||||
|
devDependencies:
|
||||||
|
'@vercel/ncc':
|
||||||
|
specifier: ^0.38.1
|
||||||
|
version: 0.38.3
|
||||||
|
pnpm:
|
||||||
|
specifier: ^8.14.3
|
||||||
|
version: 8.15.9
|
||||||
|
typescript:
|
||||||
|
specifier: ^5.3.3
|
||||||
|
version: 5.7.3
|
||||||
|
|
||||||
|
packages:
|
||||||
|
|
||||||
|
'@actions/cache@4.1.0':
|
||||||
|
resolution: {integrity: sha512-z3Opg+P4Y7baq+g1dODXgdtsvPLSewr3ZKpp3U0HQR1A/vWCoJFS52XSezjdngo4SIOdR5oHtyK3a3Arar+X9A==}
|
||||||
|
|
||||||
|
'@actions/core@1.11.1':
|
||||||
|
resolution: {integrity: sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==}
|
||||||
|
|
||||||
|
'@actions/exec@1.1.1':
|
||||||
|
resolution: {integrity: sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==}
|
||||||
|
|
||||||
|
'@actions/glob@0.1.2':
|
||||||
|
resolution: {integrity: sha512-SclLR7Ia5sEqjkJTPs7Sd86maMDw43p769YxBOxvPvEWuPEhpAnBsQfENOpXjFYMmhCqd127bmf+YdvJqVqR4A==}
|
||||||
|
|
||||||
|
'@actions/glob@0.5.0':
|
||||||
|
resolution: {integrity: sha512-tST2rjPvJLRZLuT9NMUtyBjvj9Yo0MiJS3ow004slMvm8GFM+Zv9HvMJ7HWzfUyJnGrJvDsYkWBaaG3YKXRtCw==}
|
||||||
|
|
||||||
|
'@actions/http-client@2.2.3':
|
||||||
|
resolution: {integrity: sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==}
|
||||||
|
|
||||||
|
'@actions/io@1.1.3':
|
||||||
|
resolution: {integrity: sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==}
|
||||||
|
|
||||||
|
'@azure/abort-controller@1.1.0':
|
||||||
|
resolution: {integrity: sha512-TrRLIoSQVzfAJX9H1JeFjzAoDGcoK1IYX1UImfceTZpsyYfWr09Ss1aHW1y5TrrR3iq6RZLBwJ3E24uwPhwahw==}
|
||||||
|
engines: {node: '>=12.0.0'}
|
||||||
|
|
||||||
|
'@azure/abort-controller@2.1.2':
|
||||||
|
resolution: {integrity: sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==}
|
||||||
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
|
'@azure/core-auth@1.10.0':
|
||||||
|
resolution: {integrity: sha512-88Djs5vBvGbHQHf5ZZcaoNHo6Y8BKZkt3cw2iuJIQzLEgH4Ox6Tm4hjFhbqOxyYsgIG/eJbFEHpxRIfEEWv5Ow==}
|
||||||
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
|
'@azure/core-client@1.10.0':
|
||||||
|
resolution: {integrity: sha512-O4aP3CLFNodg8eTHXECaH3B3CjicfzkxVtnrfLkOq0XNP7TIECGfHpK/C6vADZkWP75wzmdBnsIA8ksuJMk18g==}
|
||||||
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
|
'@azure/core-http-compat@2.3.0':
|
||||||
|
resolution: {integrity: sha512-qLQujmUypBBG0gxHd0j6/Jdmul6ttl24c8WGiLXIk7IHXdBlfoBqW27hyz3Xn6xbfdyVSarl1Ttbk0AwnZBYCw==}
|
||||||
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
|
'@azure/core-lro@2.7.2':
|
||||||
|
resolution: {integrity: sha512-0YIpccoX8m/k00O7mDDMdJpbr6mf1yWo2dfmxt5A8XVZVVMz2SSKaEbMCeJRvgQ0IaSlqhjT47p4hVIRRy90xw==}
|
||||||
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
|
'@azure/core-paging@1.6.2':
|
||||||
|
resolution: {integrity: sha512-YKWi9YuCU04B55h25cnOYZHxXYtEvQEbKST5vqRga7hWY9ydd3FZHdeQF8pyh+acWZvppw13M/LMGx0LABUVMA==}
|
||||||
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
|
'@azure/core-rest-pipeline@1.22.0':
|
||||||
|
resolution: {integrity: sha512-OKHmb3/Kpm06HypvB3g6Q3zJuvyXcpxDpCS1PnU8OV6AJgSFaee/covXBcPbWc6XDDxtEPlbi3EMQ6nUiPaQtw==}
|
||||||
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
|
'@azure/core-tracing@1.3.0':
|
||||||
|
resolution: {integrity: sha512-+XvmZLLWPe67WXNZo9Oc9CrPj/Tm8QnHR92fFAFdnbzwNdCH1h+7UdpaQgRSBsMY+oW1kHXNUZQLdZ1gHX3ROw==}
|
||||||
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
|
'@azure/core-util@1.13.0':
|
||||||
|
resolution: {integrity: sha512-o0psW8QWQ58fq3i24Q1K2XfS/jYTxr7O1HRcyUE9bV9NttLU+kYOH82Ixj8DGlMTOWgxm1Sss2QAfKK5UkSPxw==}
|
||||||
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
|
'@azure/core-xml@1.5.0':
|
||||||
|
resolution: {integrity: sha512-D/sdlJBMJfx7gqoj66PKVmhDDaU6TKA49ptcolxdas29X7AfvLTmfAGLjAcIMBK7UZ2o4lygHIqVckOlQU3xWw==}
|
||||||
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
|
'@azure/logger@1.3.0':
|
||||||
|
resolution: {integrity: sha512-fCqPIfOcLE+CGqGPd66c8bZpwAji98tZ4JI9i/mlTNTlsIWslCfpg48s/ypyLxZTump5sypjrKn2/kY7q8oAbA==}
|
||||||
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
|
'@azure/ms-rest-js@2.7.0':
|
||||||
|
resolution: {integrity: sha512-ngbzWbqF+NmztDOpLBVDxYM+XLcUj7nKhxGbSU9WtIsXfRB//cf2ZbAG5HkOrhU9/wd/ORRB6lM/d69RKVjiyA==}
|
||||||
|
|
||||||
|
'@azure/storage-blob@12.27.0':
|
||||||
|
resolution: {integrity: sha512-IQjj9RIzAKatmNca3D6bT0qJ+Pkox1WZGOg2esJF2YLHb45pQKOwGPIAV+w3rfgkj7zV3RMxpn/c6iftzSOZJQ==}
|
||||||
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
|
'@fastify/busboy@2.1.1':
|
||||||
|
resolution: {integrity: sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==}
|
||||||
|
engines: {node: '>=14'}
|
||||||
|
|
||||||
|
'@protobuf-ts/runtime-rpc@2.11.1':
|
||||||
|
resolution: {integrity: sha512-4CqqUmNA+/uMz00+d3CYKgElXO9VrEbucjnBFEjqI4GuDrEQ32MaI3q+9qPBvIGOlL4PmHXrzM32vBPWRhQKWQ==}
|
||||||
|
|
||||||
|
'@protobuf-ts/runtime@2.11.1':
|
||||||
|
resolution: {integrity: sha512-KuDaT1IfHkugM2pyz+FwiY80ejWrkH1pAtOBOZFuR6SXEFTsnb/jiQWQ1rCIrcKx2BtyxnxW6BWwsVSA/Ie+WQ==}
|
||||||
|
|
||||||
|
'@types/expand-tilde@2.0.2':
|
||||||
|
resolution: {integrity: sha512-wlsMYiapmIR4Eq/Z0qysN8xaDMjSkO6AIDNFx9oxgWGeKVA1jU+NzwPRZErBNP5z6/dx6QNkNpKglBGPO9OkTA==}
|
||||||
|
|
||||||
|
'@types/node@20.17.17':
|
||||||
|
resolution: {integrity: sha512-/WndGO4kIfMicEQLTi/mDANUu/iVUhT7KboZPdEqqHQ4aTS+3qT3U5gIqWDFV+XouorjfgGqvKILJeHhuQgFYg==}
|
||||||
|
|
||||||
|
'@typespec/ts-http-runtime@0.3.0':
|
||||||
|
resolution: {integrity: sha512-sOx1PKSuFwnIl7z4RN0Ls7N9AQawmR9r66eI5rFCzLDIs8HTIYrIpH9QjYWoX0lkgGrkLxXhi4QnK7MizPRrIg==}
|
||||||
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
|
'@vercel/ncc@0.38.3':
|
||||||
|
resolution: {integrity: sha512-rnK6hJBS6mwc+Bkab+PGPs9OiS0i/3kdTO+CkI8V0/VrW3vmz7O2Pxjw/owOlmo6PKEIxRSeZKv/kuL9itnpYA==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
resolution:
|
|
||||||
integrity: sha512-Qq3bMuonkcnV/96jhy9SQYdh39NXHxNMJ1O31ZFzWG9n52fR2DLtgrNzhj/ahlEjnBziMLGVWDbaS9sf03/fEw==
|
abort-controller@3.0.0:
|
||||||
/asynckit/0.4.0:
|
resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==}
|
||||||
dev: false
|
engines: {node: '>=6.5'}
|
||||||
resolution:
|
|
||||||
integrity: sha1-x57Zf380y48robyXkLzDZkdLS3k=
|
agent-base@7.1.4:
|
||||||
/combined-stream/1.0.8:
|
resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}
|
||||||
|
engines: {node: '>= 14'}
|
||||||
|
|
||||||
|
asynckit@0.4.0:
|
||||||
|
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
|
||||||
|
|
||||||
|
balanced-match@1.0.2:
|
||||||
|
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
|
||||||
|
|
||||||
|
brace-expansion@1.1.12:
|
||||||
|
resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==}
|
||||||
|
|
||||||
|
call-bind-apply-helpers@1.0.2:
|
||||||
|
resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
combined-stream@1.0.8:
|
||||||
|
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
|
||||||
|
engines: {node: '>= 0.8'}
|
||||||
|
|
||||||
|
concat-map@0.0.1:
|
||||||
|
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
|
||||||
|
|
||||||
|
debug@4.4.1:
|
||||||
|
resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==}
|
||||||
|
engines: {node: '>=6.0'}
|
||||||
|
peerDependencies:
|
||||||
|
supports-color: '*'
|
||||||
|
peerDependenciesMeta:
|
||||||
|
supports-color:
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
delayed-stream@1.0.0:
|
||||||
|
resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}
|
||||||
|
engines: {node: '>=0.4.0'}
|
||||||
|
|
||||||
|
dunder-proto@1.0.1:
|
||||||
|
resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
es-define-property@1.0.1:
|
||||||
|
resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
es-errors@1.3.0:
|
||||||
|
resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
es-object-atoms@1.1.1:
|
||||||
|
resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
es-set-tostringtag@2.1.0:
|
||||||
|
resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
event-target-shim@5.0.1:
|
||||||
|
resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==}
|
||||||
|
engines: {node: '>=6'}
|
||||||
|
|
||||||
|
events@3.3.0:
|
||||||
|
resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}
|
||||||
|
engines: {node: '>=0.8.x'}
|
||||||
|
|
||||||
|
expand-tilde@2.0.2:
|
||||||
|
resolution: {integrity: sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==}
|
||||||
|
engines: {node: '>=0.10.0'}
|
||||||
|
|
||||||
|
fast-xml-parser@5.2.5:
|
||||||
|
resolution: {integrity: sha512-pfX9uG9Ki0yekDHx2SiuRIyFdyAr1kMIMitPvb0YBo8SUfKvia7w7FIyd/l6av85pFYRhZscS75MwMnbvY+hcQ==}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
|
form-data@2.5.5:
|
||||||
|
resolution: {integrity: sha512-jqdObeR2rxZZbPSGL+3VckHMYtu+f9//KXBsVny6JSX/pa38Fy+bGjuG8eW/H6USNQWhLi8Num++cU2yOCNz4A==}
|
||||||
|
engines: {node: '>= 0.12'}
|
||||||
|
|
||||||
|
function-bind@1.1.2:
|
||||||
|
resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
|
||||||
|
|
||||||
|
get-intrinsic@1.3.0:
|
||||||
|
resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
get-proto@1.0.1:
|
||||||
|
resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
gopd@1.2.0:
|
||||||
|
resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
has-symbols@1.1.0:
|
||||||
|
resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
has-tostringtag@1.0.2:
|
||||||
|
resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
hasown@2.0.2:
|
||||||
|
resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
homedir-polyfill@1.0.3:
|
||||||
|
resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==}
|
||||||
|
engines: {node: '>=0.10.0'}
|
||||||
|
|
||||||
|
http-proxy-agent@7.0.2:
|
||||||
|
resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==}
|
||||||
|
engines: {node: '>= 14'}
|
||||||
|
|
||||||
|
https-proxy-agent@7.0.6:
|
||||||
|
resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}
|
||||||
|
engines: {node: '>= 14'}
|
||||||
|
|
||||||
|
math-intrinsics@1.1.0:
|
||||||
|
resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
mime-db@1.52.0:
|
||||||
|
resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
|
||||||
|
engines: {node: '>= 0.6'}
|
||||||
|
|
||||||
|
mime-types@2.1.35:
|
||||||
|
resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
|
||||||
|
engines: {node: '>= 0.6'}
|
||||||
|
|
||||||
|
minimatch@3.1.2:
|
||||||
|
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
|
||||||
|
|
||||||
|
ms@2.1.3:
|
||||||
|
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
|
||||||
|
|
||||||
|
node-fetch@2.7.0:
|
||||||
|
resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==}
|
||||||
|
engines: {node: 4.x || >=6.0.0}
|
||||||
|
peerDependencies:
|
||||||
|
encoding: ^0.1.0
|
||||||
|
peerDependenciesMeta:
|
||||||
|
encoding:
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
parse-passwd@1.0.0:
|
||||||
|
resolution: {integrity: sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==}
|
||||||
|
engines: {node: '>=0.10.0'}
|
||||||
|
|
||||||
|
pnpm@8.15.9:
|
||||||
|
resolution: {integrity: sha512-SZQ0ydj90aJ5Tr9FUrOyXApjOrzuW7Fee13pDzL0e1E6ypjNXP0AHDHw20VLw4BO3M1XhQHkyik6aBYWa72fgQ==}
|
||||||
|
engines: {node: '>=16.14'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
|
safe-buffer@5.2.1:
|
||||||
|
resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
|
||||||
|
|
||||||
|
sax@1.4.1:
|
||||||
|
resolution: {integrity: sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==}
|
||||||
|
|
||||||
|
semver@6.3.1:
|
||||||
|
resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
|
strnum@2.1.1:
|
||||||
|
resolution: {integrity: sha512-7ZvoFTiCnGxBtDqJ//Cu6fWtZtc7Y3x+QOirG15wztbdngGSkht27o2pyGWrVy0b4WAy3jbKmnoK6g5VlVNUUw==}
|
||||||
|
|
||||||
|
tr46@0.0.3:
|
||||||
|
resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==}
|
||||||
|
|
||||||
|
tslib@1.14.1:
|
||||||
|
resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}
|
||||||
|
|
||||||
|
tslib@2.8.1:
|
||||||
|
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
|
||||||
|
|
||||||
|
tunnel@0.0.6:
|
||||||
|
resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==}
|
||||||
|
engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'}
|
||||||
|
|
||||||
|
typescript@5.7.3:
|
||||||
|
resolution: {integrity: sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==}
|
||||||
|
engines: {node: '>=14.17'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
|
undici-types@6.19.8:
|
||||||
|
resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==}
|
||||||
|
|
||||||
|
undici@5.29.0:
|
||||||
|
resolution: {integrity: sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==}
|
||||||
|
engines: {node: '>=14.0'}
|
||||||
|
|
||||||
|
uuid@8.3.2:
|
||||||
|
resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
|
webidl-conversions@3.0.1:
|
||||||
|
resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}
|
||||||
|
|
||||||
|
whatwg-url@5.0.0:
|
||||||
|
resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==}
|
||||||
|
|
||||||
|
xml2js@0.5.0:
|
||||||
|
resolution: {integrity: sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==}
|
||||||
|
engines: {node: '>=4.0.0'}
|
||||||
|
|
||||||
|
xmlbuilder@11.0.1:
|
||||||
|
resolution: {integrity: sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==}
|
||||||
|
engines: {node: '>=4.0'}
|
||||||
|
|
||||||
|
yaml@2.7.0:
|
||||||
|
resolution: {integrity: sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==}
|
||||||
|
engines: {node: '>= 14'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
|
zod@3.24.1:
|
||||||
|
resolution: {integrity: sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==}
|
||||||
|
|
||||||
|
snapshots:
|
||||||
|
|
||||||
|
'@actions/cache@4.1.0':
|
||||||
|
dependencies:
|
||||||
|
'@actions/core': 1.11.1
|
||||||
|
'@actions/exec': 1.1.1
|
||||||
|
'@actions/glob': 0.1.2
|
||||||
|
'@actions/http-client': 2.2.3
|
||||||
|
'@actions/io': 1.1.3
|
||||||
|
'@azure/abort-controller': 1.1.0
|
||||||
|
'@azure/ms-rest-js': 2.7.0
|
||||||
|
'@azure/storage-blob': 12.27.0
|
||||||
|
'@protobuf-ts/runtime-rpc': 2.11.1
|
||||||
|
semver: 6.3.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- encoding
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@actions/core@1.11.1':
|
||||||
|
dependencies:
|
||||||
|
'@actions/exec': 1.1.1
|
||||||
|
'@actions/http-client': 2.2.3
|
||||||
|
|
||||||
|
'@actions/exec@1.1.1':
|
||||||
|
dependencies:
|
||||||
|
'@actions/io': 1.1.3
|
||||||
|
|
||||||
|
'@actions/glob@0.1.2':
|
||||||
|
dependencies:
|
||||||
|
'@actions/core': 1.11.1
|
||||||
|
minimatch: 3.1.2
|
||||||
|
|
||||||
|
'@actions/glob@0.5.0':
|
||||||
|
dependencies:
|
||||||
|
'@actions/core': 1.11.1
|
||||||
|
minimatch: 3.1.2
|
||||||
|
|
||||||
|
'@actions/http-client@2.2.3':
|
||||||
|
dependencies:
|
||||||
|
tunnel: 0.0.6
|
||||||
|
undici: 5.29.0
|
||||||
|
|
||||||
|
'@actions/io@1.1.3': {}
|
||||||
|
|
||||||
|
'@azure/abort-controller@1.1.0':
|
||||||
|
dependencies:
|
||||||
|
tslib: 2.8.1
|
||||||
|
|
||||||
|
'@azure/abort-controller@2.1.2':
|
||||||
|
dependencies:
|
||||||
|
tslib: 2.8.1
|
||||||
|
|
||||||
|
'@azure/core-auth@1.10.0':
|
||||||
|
dependencies:
|
||||||
|
'@azure/abort-controller': 2.1.2
|
||||||
|
'@azure/core-util': 1.13.0
|
||||||
|
tslib: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@azure/core-client@1.10.0':
|
||||||
|
dependencies:
|
||||||
|
'@azure/abort-controller': 2.1.2
|
||||||
|
'@azure/core-auth': 1.10.0
|
||||||
|
'@azure/core-rest-pipeline': 1.22.0
|
||||||
|
'@azure/core-tracing': 1.3.0
|
||||||
|
'@azure/core-util': 1.13.0
|
||||||
|
'@azure/logger': 1.3.0
|
||||||
|
tslib: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@azure/core-http-compat@2.3.0':
|
||||||
|
dependencies:
|
||||||
|
'@azure/abort-controller': 2.1.2
|
||||||
|
'@azure/core-client': 1.10.0
|
||||||
|
'@azure/core-rest-pipeline': 1.22.0
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@azure/core-lro@2.7.2':
|
||||||
|
dependencies:
|
||||||
|
'@azure/abort-controller': 2.1.2
|
||||||
|
'@azure/core-util': 1.13.0
|
||||||
|
'@azure/logger': 1.3.0
|
||||||
|
tslib: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@azure/core-paging@1.6.2':
|
||||||
|
dependencies:
|
||||||
|
tslib: 2.8.1
|
||||||
|
|
||||||
|
'@azure/core-rest-pipeline@1.22.0':
|
||||||
|
dependencies:
|
||||||
|
'@azure/abort-controller': 2.1.2
|
||||||
|
'@azure/core-auth': 1.10.0
|
||||||
|
'@azure/core-tracing': 1.3.0
|
||||||
|
'@azure/core-util': 1.13.0
|
||||||
|
'@azure/logger': 1.3.0
|
||||||
|
'@typespec/ts-http-runtime': 0.3.0
|
||||||
|
tslib: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@azure/core-tracing@1.3.0':
|
||||||
|
dependencies:
|
||||||
|
tslib: 2.8.1
|
||||||
|
|
||||||
|
'@azure/core-util@1.13.0':
|
||||||
|
dependencies:
|
||||||
|
'@azure/abort-controller': 2.1.2
|
||||||
|
'@typespec/ts-http-runtime': 0.3.0
|
||||||
|
tslib: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@azure/core-xml@1.5.0':
|
||||||
|
dependencies:
|
||||||
|
fast-xml-parser: 5.2.5
|
||||||
|
tslib: 2.8.1
|
||||||
|
|
||||||
|
'@azure/logger@1.3.0':
|
||||||
|
dependencies:
|
||||||
|
'@typespec/ts-http-runtime': 0.3.0
|
||||||
|
tslib: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@azure/ms-rest-js@2.7.0':
|
||||||
|
dependencies:
|
||||||
|
'@azure/core-auth': 1.10.0
|
||||||
|
abort-controller: 3.0.0
|
||||||
|
form-data: 2.5.5
|
||||||
|
node-fetch: 2.7.0
|
||||||
|
tslib: 1.14.1
|
||||||
|
tunnel: 0.0.6
|
||||||
|
uuid: 8.3.2
|
||||||
|
xml2js: 0.5.0
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- encoding
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@azure/storage-blob@12.27.0':
|
||||||
|
dependencies:
|
||||||
|
'@azure/abort-controller': 2.1.2
|
||||||
|
'@azure/core-auth': 1.10.0
|
||||||
|
'@azure/core-client': 1.10.0
|
||||||
|
'@azure/core-http-compat': 2.3.0
|
||||||
|
'@azure/core-lro': 2.7.2
|
||||||
|
'@azure/core-paging': 1.6.2
|
||||||
|
'@azure/core-rest-pipeline': 1.22.0
|
||||||
|
'@azure/core-tracing': 1.3.0
|
||||||
|
'@azure/core-util': 1.13.0
|
||||||
|
'@azure/core-xml': 1.5.0
|
||||||
|
'@azure/logger': 1.3.0
|
||||||
|
events: 3.3.0
|
||||||
|
tslib: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@fastify/busboy@2.1.1': {}
|
||||||
|
|
||||||
|
'@protobuf-ts/runtime-rpc@2.11.1':
|
||||||
|
dependencies:
|
||||||
|
'@protobuf-ts/runtime': 2.11.1
|
||||||
|
|
||||||
|
'@protobuf-ts/runtime@2.11.1': {}
|
||||||
|
|
||||||
|
'@types/expand-tilde@2.0.2': {}
|
||||||
|
|
||||||
|
'@types/node@20.17.17':
|
||||||
|
dependencies:
|
||||||
|
undici-types: 6.19.8
|
||||||
|
|
||||||
|
'@typespec/ts-http-runtime@0.3.0':
|
||||||
|
dependencies:
|
||||||
|
http-proxy-agent: 7.0.2
|
||||||
|
https-proxy-agent: 7.0.6
|
||||||
|
tslib: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@vercel/ncc@0.38.3': {}
|
||||||
|
|
||||||
|
abort-controller@3.0.0:
|
||||||
|
dependencies:
|
||||||
|
event-target-shim: 5.0.1
|
||||||
|
|
||||||
|
agent-base@7.1.4: {}
|
||||||
|
|
||||||
|
asynckit@0.4.0: {}
|
||||||
|
|
||||||
|
balanced-match@1.0.2: {}
|
||||||
|
|
||||||
|
brace-expansion@1.1.12:
|
||||||
|
dependencies:
|
||||||
|
balanced-match: 1.0.2
|
||||||
|
concat-map: 0.0.1
|
||||||
|
|
||||||
|
call-bind-apply-helpers@1.0.2:
|
||||||
|
dependencies:
|
||||||
|
es-errors: 1.3.0
|
||||||
|
function-bind: 1.1.2
|
||||||
|
|
||||||
|
combined-stream@1.0.8:
|
||||||
dependencies:
|
dependencies:
|
||||||
delayed-stream: 1.0.0
|
delayed-stream: 1.0.0
|
||||||
dev: false
|
|
||||||
engines:
|
concat-map@0.0.1: {}
|
||||||
node: '>= 0.8'
|
|
||||||
resolution:
|
debug@4.4.1:
|
||||||
integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
|
dependencies:
|
||||||
/delayed-stream/1.0.0:
|
ms: 2.1.3
|
||||||
dev: false
|
|
||||||
engines:
|
delayed-stream@1.0.0: {}
|
||||||
node: '>=0.4.0'
|
|
||||||
resolution:
|
dunder-proto@1.0.1:
|
||||||
integrity: sha1-3zrhmayt+31ECqrgsp4icrJOxhk=
|
dependencies:
|
||||||
/expand-tilde/2.0.2:
|
call-bind-apply-helpers: 1.0.2
|
||||||
|
es-errors: 1.3.0
|
||||||
|
gopd: 1.2.0
|
||||||
|
|
||||||
|
es-define-property@1.0.1: {}
|
||||||
|
|
||||||
|
es-errors@1.3.0: {}
|
||||||
|
|
||||||
|
es-object-atoms@1.1.1:
|
||||||
|
dependencies:
|
||||||
|
es-errors: 1.3.0
|
||||||
|
|
||||||
|
es-set-tostringtag@2.1.0:
|
||||||
|
dependencies:
|
||||||
|
es-errors: 1.3.0
|
||||||
|
get-intrinsic: 1.3.0
|
||||||
|
has-tostringtag: 1.0.2
|
||||||
|
hasown: 2.0.2
|
||||||
|
|
||||||
|
event-target-shim@5.0.1: {}
|
||||||
|
|
||||||
|
events@3.3.0: {}
|
||||||
|
|
||||||
|
expand-tilde@2.0.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
homedir-polyfill: 1.0.3
|
homedir-polyfill: 1.0.3
|
||||||
dev: false
|
|
||||||
engines:
|
fast-xml-parser@5.2.5:
|
||||||
node: '>=0.10.0'
|
dependencies:
|
||||||
resolution:
|
strnum: 2.1.1
|
||||||
integrity: sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=
|
|
||||||
/form-data/3.0.0:
|
form-data@2.5.5:
|
||||||
dependencies:
|
dependencies:
|
||||||
asynckit: 0.4.0
|
asynckit: 0.4.0
|
||||||
combined-stream: 1.0.8
|
combined-stream: 1.0.8
|
||||||
mime-types: 2.1.27
|
es-set-tostringtag: 2.1.0
|
||||||
dev: false
|
hasown: 2.0.2
|
||||||
engines:
|
mime-types: 2.1.35
|
||||||
node: '>= 6'
|
safe-buffer: 5.2.1
|
||||||
resolution:
|
|
||||||
integrity: sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==
|
function-bind@1.1.2: {}
|
||||||
/homedir-polyfill/1.0.3:
|
|
||||||
|
get-intrinsic@1.3.0:
|
||||||
|
dependencies:
|
||||||
|
call-bind-apply-helpers: 1.0.2
|
||||||
|
es-define-property: 1.0.1
|
||||||
|
es-errors: 1.3.0
|
||||||
|
es-object-atoms: 1.1.1
|
||||||
|
function-bind: 1.1.2
|
||||||
|
get-proto: 1.0.1
|
||||||
|
gopd: 1.2.0
|
||||||
|
has-symbols: 1.1.0
|
||||||
|
hasown: 2.0.2
|
||||||
|
math-intrinsics: 1.1.0
|
||||||
|
|
||||||
|
get-proto@1.0.1:
|
||||||
|
dependencies:
|
||||||
|
dunder-proto: 1.0.1
|
||||||
|
es-object-atoms: 1.1.1
|
||||||
|
|
||||||
|
gopd@1.2.0: {}
|
||||||
|
|
||||||
|
has-symbols@1.1.0: {}
|
||||||
|
|
||||||
|
has-tostringtag@1.0.2:
|
||||||
|
dependencies:
|
||||||
|
has-symbols: 1.1.0
|
||||||
|
|
||||||
|
hasown@2.0.2:
|
||||||
|
dependencies:
|
||||||
|
function-bind: 1.1.2
|
||||||
|
|
||||||
|
homedir-polyfill@1.0.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
parse-passwd: 1.0.0
|
parse-passwd: 1.0.0
|
||||||
dev: false
|
|
||||||
engines:
|
http-proxy-agent@7.0.2:
|
||||||
node: '>=0.10.0'
|
|
||||||
resolution:
|
|
||||||
integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==
|
|
||||||
/mime-db/1.44.0:
|
|
||||||
dev: false
|
|
||||||
engines:
|
|
||||||
node: '>= 0.6'
|
|
||||||
resolution:
|
|
||||||
integrity: sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==
|
|
||||||
/mime-types/2.1.27:
|
|
||||||
dependencies:
|
dependencies:
|
||||||
mime-db: 1.44.0
|
agent-base: 7.1.4
|
||||||
dev: false
|
debug: 4.4.1
|
||||||
engines:
|
transitivePeerDependencies:
|
||||||
node: '>= 0.6'
|
- supports-color
|
||||||
resolution:
|
|
||||||
integrity: sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==
|
https-proxy-agent@7.0.6:
|
||||||
/node-fetch/2.6.0:
|
dependencies:
|
||||||
dev: false
|
agent-base: 7.1.4
|
||||||
engines:
|
debug: 4.4.1
|
||||||
node: 4.x || >=6.0.0
|
transitivePeerDependencies:
|
||||||
resolution:
|
- supports-color
|
||||||
integrity: sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==
|
|
||||||
/parse-passwd/1.0.0:
|
math-intrinsics@1.1.0: {}
|
||||||
dev: false
|
|
||||||
engines:
|
mime-db@1.52.0: {}
|
||||||
node: '>=0.10.0'
|
|
||||||
resolution:
|
mime-types@2.1.35:
|
||||||
integrity: sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=
|
dependencies:
|
||||||
/typescript/3.8.3:
|
mime-db: 1.52.0
|
||||||
dev: true
|
|
||||||
engines:
|
minimatch@3.1.2:
|
||||||
node: '>=4.2.0'
|
dependencies:
|
||||||
hasBin: true
|
brace-expansion: 1.1.12
|
||||||
resolution:
|
|
||||||
integrity: sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==
|
ms@2.1.3: {}
|
||||||
specifiers:
|
|
||||||
'@actions/core': ^1.2.4
|
node-fetch@2.7.0:
|
||||||
'@types/expand-tilde': ^2.0.0
|
dependencies:
|
||||||
'@types/node': ^13.13.5
|
whatwg-url: 5.0.0
|
||||||
'@types/node-fetch': ^2.5.7
|
|
||||||
'@zeit/ncc': ^0.22.1
|
parse-passwd@1.0.0: {}
|
||||||
expand-tilde: ^2.0.2
|
|
||||||
node-fetch: ^2.6.0
|
pnpm@8.15.9: {}
|
||||||
typescript: ^3.8.3
|
|
||||||
|
safe-buffer@5.2.1: {}
|
||||||
|
|
||||||
|
sax@1.4.1: {}
|
||||||
|
|
||||||
|
semver@6.3.1: {}
|
||||||
|
|
||||||
|
strnum@2.1.1: {}
|
||||||
|
|
||||||
|
tr46@0.0.3: {}
|
||||||
|
|
||||||
|
tslib@1.14.1: {}
|
||||||
|
|
||||||
|
tslib@2.8.1: {}
|
||||||
|
|
||||||
|
tunnel@0.0.6: {}
|
||||||
|
|
||||||
|
typescript@5.7.3: {}
|
||||||
|
|
||||||
|
undici-types@6.19.8: {}
|
||||||
|
|
||||||
|
undici@5.29.0:
|
||||||
|
dependencies:
|
||||||
|
'@fastify/busboy': 2.1.1
|
||||||
|
|
||||||
|
uuid@8.3.2: {}
|
||||||
|
|
||||||
|
webidl-conversions@3.0.1: {}
|
||||||
|
|
||||||
|
whatwg-url@5.0.0:
|
||||||
|
dependencies:
|
||||||
|
tr46: 0.0.3
|
||||||
|
webidl-conversions: 3.0.1
|
||||||
|
|
||||||
|
xml2js@0.5.0:
|
||||||
|
dependencies:
|
||||||
|
sax: 1.4.1
|
||||||
|
xmlbuilder: 11.0.1
|
||||||
|
|
||||||
|
xmlbuilder@11.0.1: {}
|
||||||
|
|
||||||
|
yaml@2.7.0: {}
|
||||||
|
|
||||||
|
zod@3.24.1: {}
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"pinVersions": false,
|
"pinVersions": false,
|
||||||
"extends": [
|
"extends": [
|
||||||
"config:base"
|
"config:base"
|
||||||
|
],
|
||||||
|
"ignoreDeps": [
|
||||||
|
"ajv"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
4
run.sh
4
run.sh
@@ -3,6 +3,6 @@
|
|||||||
export HOME="$(pwd)"
|
export HOME="$(pwd)"
|
||||||
export INPUT_VERSION=4.11.1
|
export INPUT_VERSION=4.11.1
|
||||||
export INPUT_DEST='~/pnpm.temp'
|
export INPUT_DEST='~/pnpm.temp'
|
||||||
export INPUT_BIN_DEST='~/pnpm.temp/.bin'
|
export INPUT_RUN_INSTALL=null
|
||||||
export INPUT_REGISTRY=https://registry.npmjs.com
|
export INPUT_standalone=false
|
||||||
exec node dist/index.js
|
exec node dist/index.js
|
||||||
|
|||||||
19
src/cache-restore/index.ts
Normal file
19
src/cache-restore/index.ts
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import { isFeatureAvailable } from '@actions/cache'
|
||||||
|
import { endGroup, startGroup, warning } from '@actions/core'
|
||||||
|
import { Inputs } from '../inputs'
|
||||||
|
import { runRestoreCache } from './run'
|
||||||
|
|
||||||
|
export async function restoreCache(inputs: Inputs) {
|
||||||
|
if (!inputs.cache) return
|
||||||
|
|
||||||
|
if (!isFeatureAvailable()) {
|
||||||
|
warning('Cache is not available, skipping cache restoration')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
startGroup('Restoring cache...')
|
||||||
|
await runRestoreCache(inputs)
|
||||||
|
endGroup()
|
||||||
|
}
|
||||||
|
|
||||||
|
export default restoreCache
|
||||||
39
src/cache-restore/run.ts
Normal file
39
src/cache-restore/run.ts
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
import { restoreCache } from '@actions/cache'
|
||||||
|
import { debug, info, saveState, setOutput } from '@actions/core'
|
||||||
|
import { getExecOutput } from '@actions/exec'
|
||||||
|
import { hashFiles } from '@actions/glob'
|
||||||
|
import os from 'os'
|
||||||
|
import { Inputs } from '../inputs'
|
||||||
|
|
||||||
|
export async function runRestoreCache(inputs: Inputs) {
|
||||||
|
const cachePath = await getCacheDirectory()
|
||||||
|
saveState('cache_path', cachePath)
|
||||||
|
|
||||||
|
const fileHash = await hashFiles(inputs.cacheDependencyPath)
|
||||||
|
if (!fileHash) {
|
||||||
|
throw new Error('Some specified paths were not resolved, unable to cache dependencies.')
|
||||||
|
}
|
||||||
|
|
||||||
|
const primaryKey = `pnpm-cache-${process.env.RUNNER_OS}-${os.arch()}-${fileHash}`
|
||||||
|
debug(`Primary key is ${primaryKey}`)
|
||||||
|
saveState('cache_primary_key', primaryKey)
|
||||||
|
|
||||||
|
let cacheKey = await restoreCache([cachePath], primaryKey)
|
||||||
|
|
||||||
|
setOutput('cache-hit', Boolean(cacheKey))
|
||||||
|
|
||||||
|
if (!cacheKey) {
|
||||||
|
info(`Cache is not found`)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
saveState('cache_restored_key', cacheKey)
|
||||||
|
info(`Cache restored from key: ${cacheKey}`)
|
||||||
|
}
|
||||||
|
|
||||||
|
async function getCacheDirectory() {
|
||||||
|
const { stdout } = await getExecOutput('pnpm store path --silent')
|
||||||
|
const cacheFolderPath = stdout.trim()
|
||||||
|
debug(`Cache folder is set to "${cacheFolderPath}"`)
|
||||||
|
return cacheFolderPath
|
||||||
|
}
|
||||||
15
src/cache-save/index.ts
Normal file
15
src/cache-save/index.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { setFailed } from '@actions/core'
|
||||||
|
import { Inputs } from '../inputs'
|
||||||
|
import { runSaveCache } from './run'
|
||||||
|
|
||||||
|
export async function saveCache(inputs: Inputs) {
|
||||||
|
if (!inputs.cache) return
|
||||||
|
|
||||||
|
try {
|
||||||
|
await runSaveCache()
|
||||||
|
} catch (error) {
|
||||||
|
setFailed((error as Error).message)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default saveCache
|
||||||
18
src/cache-save/run.ts
Normal file
18
src/cache-save/run.ts
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import { saveCache } from '@actions/cache'
|
||||||
|
import { getState, info } from '@actions/core'
|
||||||
|
|
||||||
|
export async function runSaveCache() {
|
||||||
|
const state = getState('cache_restored_key')
|
||||||
|
const primaryKey = getState('cache_primary_key')
|
||||||
|
const cachePath = getState('cache_path')
|
||||||
|
|
||||||
|
if (primaryKey === state) {
|
||||||
|
info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
const cacheId = await saveCache([cachePath], primaryKey)
|
||||||
|
if (cacheId == -1) return
|
||||||
|
|
||||||
|
info(`Cache saved with the key: ${primaryKey}`)
|
||||||
|
}
|
||||||
37
src/index.ts
37
src/index.ts
@@ -1,14 +1,37 @@
|
|||||||
import { setFailed } from '@actions/core'
|
import { setFailed, saveState, getState } from '@actions/core'
|
||||||
import getInputs from './inputs'
|
import restoreCache from './cache-restore'
|
||||||
|
import saveCache from './cache-save'
|
||||||
|
import getInputs, { Inputs } from './inputs'
|
||||||
|
import installPnpm from './install-pnpm'
|
||||||
import setOutputs from './outputs'
|
import setOutputs from './outputs'
|
||||||
import install from './install'
|
import pnpmInstall from './pnpm-install'
|
||||||
|
import pruneStore from './pnpm-store-prune'
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const inputs = getInputs()
|
const inputs = getInputs()
|
||||||
await install(inputs).then(() => {
|
|
||||||
console.log('Installation Completed!')
|
if (getState('is_post') === 'true') {
|
||||||
setOutputs(inputs)
|
await runPost(inputs)
|
||||||
})
|
} else {
|
||||||
|
await runMain(inputs)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function runMain(inputs: Inputs) {
|
||||||
|
saveState('is_post', 'true')
|
||||||
|
|
||||||
|
await installPnpm(inputs)
|
||||||
|
console.log('Installation Completed!')
|
||||||
|
setOutputs(inputs)
|
||||||
|
|
||||||
|
await restoreCache(inputs)
|
||||||
|
|
||||||
|
pnpmInstall(inputs)
|
||||||
|
}
|
||||||
|
|
||||||
|
async function runPost(inputs: Inputs) {
|
||||||
|
pruneStore(inputs)
|
||||||
|
await saveCache(inputs)
|
||||||
}
|
}
|
||||||
|
|
||||||
main().catch(error => {
|
main().catch(error => {
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
import { getInput, InputOptions } from '@actions/core'
|
import { getBooleanInput, getInput, InputOptions } from '@actions/core'
|
||||||
import expandTilde from 'expand-tilde'
|
import expandTilde from 'expand-tilde'
|
||||||
|
import { RunInstall, parseRunInstall } from './run-install'
|
||||||
|
|
||||||
export interface Inputs {
|
export interface Inputs {
|
||||||
readonly version: string
|
readonly version?: string
|
||||||
readonly dest: string
|
readonly dest: string
|
||||||
readonly binDest: string
|
readonly cache: boolean
|
||||||
readonly registry: string
|
readonly cacheDependencyPath: string
|
||||||
|
readonly runInstall: RunInstall[]
|
||||||
|
readonly packageJsonFile: string
|
||||||
|
readonly standalone: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const options: InputOptions = {
|
const options: InputOptions = {
|
||||||
@@ -15,10 +19,13 @@ const options: InputOptions = {
|
|||||||
const parseInputPath = (name: string) => expandTilde(getInput(name, options))
|
const parseInputPath = (name: string) => expandTilde(getInput(name, options))
|
||||||
|
|
||||||
export const getInputs = (): Inputs => ({
|
export const getInputs = (): Inputs => ({
|
||||||
version: getInput('version', options),
|
version: getInput('version'),
|
||||||
dest: parseInputPath('dest'),
|
dest: parseInputPath('dest'),
|
||||||
binDest: parseInputPath('bin_dest'),
|
cache: getBooleanInput('cache'),
|
||||||
registry: getInput('registry', options),
|
cacheDependencyPath: parseInputPath('cache_dependency_path'),
|
||||||
|
runInstall: parseRunInstall('run_install'),
|
||||||
|
packageJsonFile: parseInputPath('package_json_file'),
|
||||||
|
standalone: getBooleanInput('standalone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
export default getInputs
|
export default getInputs
|
||||||
|
|||||||
41
src/inputs/run-install.ts
Normal file
41
src/inputs/run-install.ts
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
import { getInput, error } from '@actions/core'
|
||||||
|
import { parse as parseYaml } from 'yaml'
|
||||||
|
import { z, ZodError } from 'zod'
|
||||||
|
|
||||||
|
const RunInstallSchema = z.object({
|
||||||
|
recursive: z.boolean().optional(),
|
||||||
|
cwd: z.string().optional(),
|
||||||
|
args: z.array(z.string()).optional(),
|
||||||
|
})
|
||||||
|
|
||||||
|
const RunInstallInputSchema = z.union([
|
||||||
|
z.null(),
|
||||||
|
z.boolean(),
|
||||||
|
RunInstallSchema,
|
||||||
|
z.array(RunInstallSchema),
|
||||||
|
])
|
||||||
|
|
||||||
|
export type RunInstallInput = z.infer<typeof RunInstallInputSchema>
|
||||||
|
export type RunInstall = z.infer<typeof RunInstallSchema>
|
||||||
|
|
||||||
|
export function parseRunInstall(inputName: string): RunInstall[] {
|
||||||
|
const input = getInput(inputName, { required: true })
|
||||||
|
const parsedInput: unknown = parseYaml(input)
|
||||||
|
|
||||||
|
try {
|
||||||
|
const result: RunInstallInput = RunInstallInputSchema.parse(parsedInput)
|
||||||
|
if (!result) return []
|
||||||
|
if (result === true) return [{ recursive: true }]
|
||||||
|
if (Array.isArray(result)) return result
|
||||||
|
return [result]
|
||||||
|
} catch (exception: unknown) {
|
||||||
|
error(`Error for input "${inputName}" = ${input}`)
|
||||||
|
|
||||||
|
if (exception instanceof ZodError) {
|
||||||
|
error(`Errors: ${exception.errors}`)
|
||||||
|
} else {
|
||||||
|
error(`Exception: ${exception}`)
|
||||||
|
}
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import { setFailed } from '@actions/core'
|
import { setFailed, startGroup, endGroup } from '@actions/core'
|
||||||
import { Inputs } from '../inputs'
|
import { Inputs } from '../inputs'
|
||||||
import runSelfInstaller from './run'
|
import runSelfInstaller from './run'
|
||||||
|
|
||||||
export { runSelfInstaller }
|
export { runSelfInstaller }
|
||||||
|
|
||||||
export async function install(inputs: Inputs) {
|
export async function install(inputs: Inputs) {
|
||||||
|
startGroup('Running self-installer...')
|
||||||
const status = await runSelfInstaller(inputs)
|
const status = await runSelfInstaller(inputs)
|
||||||
|
endGroup()
|
||||||
if (status) {
|
if (status) {
|
||||||
return setFailed(`Something does wrong, self-installer exits with code ${status}`)
|
return setFailed(`Something went wrong, self-installer exits with code ${status}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
115
src/install-pnpm/run.ts
Normal file
115
src/install-pnpm/run.ts
Normal file
@@ -0,0 +1,115 @@
|
|||||||
|
import { addPath, exportVariable } from '@actions/core'
|
||||||
|
import { spawn } from 'child_process'
|
||||||
|
import { rm, writeFile, mkdir, copyFile } from 'fs/promises'
|
||||||
|
import { readFileSync } from 'fs'
|
||||||
|
import path from 'path'
|
||||||
|
import { execPath } from 'process'
|
||||||
|
import util from 'util'
|
||||||
|
import { Inputs } from '../inputs'
|
||||||
|
import { parse as parseYaml } from 'yaml'
|
||||||
|
|
||||||
|
export async function runSelfInstaller(inputs: Inputs): Promise<number> {
|
||||||
|
const { version, dest, packageJsonFile, standalone } = inputs
|
||||||
|
const { GITHUB_WORKSPACE } = process.env
|
||||||
|
|
||||||
|
// prepare self install
|
||||||
|
await rm(dest, { recursive: true, force: true })
|
||||||
|
// create dest directory after removal
|
||||||
|
await mkdir(dest, { recursive: true })
|
||||||
|
const pkgJson = path.join(dest, 'package.json')
|
||||||
|
// we have ensured the dest directory exists, we can write the file directly
|
||||||
|
await writeFile(pkgJson, JSON.stringify({ private: true }))
|
||||||
|
|
||||||
|
// copy .npmrc if it exists to install from custom registry
|
||||||
|
if (GITHUB_WORKSPACE) {
|
||||||
|
try {
|
||||||
|
await copyFile(path.join(GITHUB_WORKSPACE, '.npmrc'), path.join(dest, '.npmrc'))
|
||||||
|
} catch (error) {
|
||||||
|
// Swallow error if .npmrc doesn't exist
|
||||||
|
if (!util.types.isNativeError(error) || !('code' in error) || error.code !== 'ENOENT') throw error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// prepare target pnpm
|
||||||
|
const target = await readTarget({ version, packageJsonFile, standalone })
|
||||||
|
const cp = spawn(execPath, [path.join(__dirname, 'pnpm.cjs'), 'install', target, '--no-lockfile'], {
|
||||||
|
cwd: dest,
|
||||||
|
stdio: ['pipe', 'inherit', 'inherit'],
|
||||||
|
})
|
||||||
|
|
||||||
|
const exitCode = await new Promise<number>((resolve, reject) => {
|
||||||
|
cp.on('error', reject)
|
||||||
|
cp.on('close', resolve)
|
||||||
|
})
|
||||||
|
if (exitCode === 0) {
|
||||||
|
const pnpmHome = path.join(dest, 'node_modules/.bin')
|
||||||
|
addPath(pnpmHome)
|
||||||
|
exportVariable('PNPM_HOME', pnpmHome)
|
||||||
|
}
|
||||||
|
return exitCode
|
||||||
|
}
|
||||||
|
|
||||||
|
async function readTarget(opts: {
|
||||||
|
readonly version?: string | undefined
|
||||||
|
readonly packageJsonFile: string
|
||||||
|
readonly standalone: boolean
|
||||||
|
}) {
|
||||||
|
const { version, packageJsonFile, standalone } = opts
|
||||||
|
const { GITHUB_WORKSPACE } = process.env
|
||||||
|
|
||||||
|
let packageManager
|
||||||
|
|
||||||
|
if (GITHUB_WORKSPACE) {
|
||||||
|
try {
|
||||||
|
const content = readFileSync(path.join(GITHUB_WORKSPACE, packageJsonFile), 'utf8');
|
||||||
|
({ packageManager } = packageJsonFile.endsWith(".yaml")
|
||||||
|
? parseYaml(content, { merge: true })
|
||||||
|
: JSON.parse(content)
|
||||||
|
)
|
||||||
|
} catch (error: unknown) {
|
||||||
|
// Swallow error if package.json doesn't exist in root
|
||||||
|
if (!util.types.isNativeError(error) || !('code' in error) || error.code !== 'ENOENT') throw error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (version) {
|
||||||
|
if (
|
||||||
|
typeof packageManager === 'string' &&
|
||||||
|
packageManager.startsWith('pnpm@') &&
|
||||||
|
packageManager.replace('pnpm@', '') !== version
|
||||||
|
) {
|
||||||
|
throw new Error(`Multiple versions of pnpm specified:
|
||||||
|
- version ${version} in the GitHub Action config with the key "version"
|
||||||
|
- version ${packageManager} in the package.json with the key "packageManager"
|
||||||
|
Remove one of these versions to avoid version mismatch errors like ERR_PNPM_BAD_PM_VERSION`)
|
||||||
|
}
|
||||||
|
|
||||||
|
return `${ standalone ? '@pnpm/exe' : 'pnpm' }@${version}`
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!GITHUB_WORKSPACE) {
|
||||||
|
throw new Error(`No workspace is found.
|
||||||
|
If you've intended to let pnpm/action-setup read preferred pnpm version from the "packageManager" field in the package.json file,
|
||||||
|
please run the actions/checkout before pnpm/action-setup.
|
||||||
|
Otherwise, please specify the pnpm version in the action configuration.`)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof packageManager !== 'string') {
|
||||||
|
throw new Error(`No pnpm version is specified.
|
||||||
|
Please specify it by one of the following ways:
|
||||||
|
- in the GitHub Action config with the key "version"
|
||||||
|
- in the package.json with the key "packageManager"`)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!packageManager.startsWith('pnpm@')) {
|
||||||
|
throw new Error('Invalid packageManager field in package.json')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (standalone) {
|
||||||
|
return packageManager.replace('pnpm@', '@pnpm/exe@')
|
||||||
|
}
|
||||||
|
|
||||||
|
return packageManager
|
||||||
|
}
|
||||||
|
|
||||||
|
export default runSelfInstaller
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
import { spawn } from 'child_process'
|
|
||||||
import { execPath } from 'process'
|
|
||||||
import { downloadSelfInstaller } from '../self-installer'
|
|
||||||
import { Inputs } from '../inputs'
|
|
||||||
|
|
||||||
export async function runSelfInstaller(inputs: Inputs): Promise<number> {
|
|
||||||
const cp = spawn(execPath, {
|
|
||||||
env: {
|
|
||||||
PNPM_VERSION: inputs.version,
|
|
||||||
PNPM_DEST: inputs.dest,
|
|
||||||
PNPM_BIN_DEST: inputs.binDest,
|
|
||||||
PNPM_REGISTRY: inputs.registry,
|
|
||||||
},
|
|
||||||
stdio: ['pipe', 'inherit', 'inherit'],
|
|
||||||
})
|
|
||||||
|
|
||||||
const response = await downloadSelfInstaller()
|
|
||||||
response.body.pipe(cp.stdin)
|
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
cp.on('error', reject)
|
|
||||||
cp.on('close', resolve)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export default runSelfInstaller
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
import { setOutput, addPath } from '@actions/core'
|
import { setOutput, addPath } from '@actions/core'
|
||||||
import { Inputs } from '../inputs'
|
import { Inputs } from '../inputs'
|
||||||
|
import { getBinDest } from '../utils'
|
||||||
|
|
||||||
export function setOutputs(inputs: Inputs) {
|
export function setOutputs(inputs: Inputs) {
|
||||||
addPath(inputs.binDest)
|
const binDest = getBinDest(inputs)
|
||||||
|
addPath(binDest)
|
||||||
setOutput('dest', inputs.dest)
|
setOutput('dest', inputs.dest)
|
||||||
setOutput('bin_dest', inputs.binDest)
|
setOutput('bin_dest', binDest)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default setOutputs
|
export default setOutputs
|
||||||
|
|||||||
38
src/pnpm-install/index.ts
Normal file
38
src/pnpm-install/index.ts
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import { setFailed, startGroup, endGroup } from '@actions/core'
|
||||||
|
import { spawnSync } from 'child_process'
|
||||||
|
import { Inputs } from '../inputs'
|
||||||
|
import { patchPnpmEnv } from '../utils'
|
||||||
|
|
||||||
|
export function runPnpmInstall(inputs: Inputs) {
|
||||||
|
const env = patchPnpmEnv(inputs)
|
||||||
|
|
||||||
|
for (const options of inputs.runInstall) {
|
||||||
|
const args = ['install']
|
||||||
|
if (options.recursive) args.unshift('recursive')
|
||||||
|
if (options.args) args.push(...options.args)
|
||||||
|
|
||||||
|
const cmdStr = ['pnpm', ...args].join(' ')
|
||||||
|
startGroup(`Running ${cmdStr}...`)
|
||||||
|
|
||||||
|
const { error, status } = spawnSync('pnpm', args, {
|
||||||
|
stdio: 'inherit',
|
||||||
|
cwd: options.cwd,
|
||||||
|
shell: true,
|
||||||
|
env,
|
||||||
|
})
|
||||||
|
|
||||||
|
endGroup()
|
||||||
|
|
||||||
|
if (error) {
|
||||||
|
setFailed(error)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if (status) {
|
||||||
|
setFailed(`Command ${cmdStr} (cwd: ${options.cwd}) exits with status ${status}`)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default runPnpmInstall
|
||||||
31
src/pnpm-store-prune/index.ts
Normal file
31
src/pnpm-store-prune/index.ts
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import { warning, startGroup, endGroup } from '@actions/core'
|
||||||
|
import { spawnSync } from 'child_process'
|
||||||
|
import { Inputs } from '../inputs'
|
||||||
|
import { patchPnpmEnv } from '../utils'
|
||||||
|
|
||||||
|
export function pruneStore(inputs: Inputs) {
|
||||||
|
if (inputs.runInstall.length === 0) {
|
||||||
|
console.log('Pruning is unnecessary.')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
startGroup('Running pnpm store prune...')
|
||||||
|
const { error, status } = spawnSync('pnpm', ['store', 'prune'], {
|
||||||
|
stdio: 'inherit',
|
||||||
|
shell: true,
|
||||||
|
env: patchPnpmEnv(inputs),
|
||||||
|
})
|
||||||
|
endGroup()
|
||||||
|
|
||||||
|
if (error) {
|
||||||
|
warning(error)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (status) {
|
||||||
|
warning(`command pnpm store prune exits with code ${status}`)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default pruneStore
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
import fetch from 'node-fetch'
|
|
||||||
import url from './url'
|
|
||||||
export const downloadSelfInstaller = () => fetch(url)
|
|
||||||
export default downloadSelfInstaller
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
export * from './url'
|
|
||||||
export * from './download'
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
export const ref = '301414cec74a2b6b63c95b42f2ad1790ccb980ed'
|
|
||||||
export const url = `https://raw.githubusercontent.com/pnpm/self-installer/${ref}/install.js`
|
|
||||||
export default url
|
|
||||||
10
src/utils/index.ts
Normal file
10
src/utils/index.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import path from 'path'
|
||||||
|
import process from 'process'
|
||||||
|
import { Inputs } from '../inputs'
|
||||||
|
|
||||||
|
export const getBinDest = (inputs: Inputs): string => path.join(inputs.dest, 'node_modules', '.bin')
|
||||||
|
|
||||||
|
export const patchPnpmEnv = (inputs: Inputs): NodeJS.ProcessEnv => ({
|
||||||
|
...process.env,
|
||||||
|
PATH: getBinDest(inputs) + path.delimiter + process.env.PATH,
|
||||||
|
})
|
||||||
@@ -1,15 +1,11 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES2018",
|
"target": "ES2022",
|
||||||
"module": "CommonJS",
|
"module": "Node16",
|
||||||
"moduleResolution": "Node",
|
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"lib": [
|
"lib": [
|
||||||
"ES2018",
|
"ES2023"
|
||||||
"ES2019",
|
|
||||||
"ES2020",
|
|
||||||
"ESNext"
|
|
||||||
],
|
],
|
||||||
"outDir": "./dist/tsc",
|
"outDir": "./dist/tsc",
|
||||||
"preserveConstEnums": true,
|
"preserveConstEnums": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user