Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df022bed89 | ||
|
|
03948d1f93 | ||
|
|
ad9396411d | ||
|
|
b575dd2321 | ||
|
|
5ce4ab63a6 | ||
|
|
b230a2f4d4 | ||
|
|
a3633249d0 | ||
|
|
ff5483e1a2 | ||
|
|
92ba33f63d | ||
|
|
bee2882cdb | ||
|
|
7b05a6b43b | ||
|
|
0ebf47130e | ||
|
|
0e279bb959 | ||
|
|
3e835812ef | ||
|
|
551b42e879 | ||
|
|
739bfe42ca | ||
|
|
f61705d907 | ||
|
|
7a5507b117 | ||
|
|
1155470f3e | ||
|
|
91ab88e261 | ||
|
|
e578e19d19 | ||
|
|
8912a9102a | ||
|
|
26f6d4f2c5 | ||
|
|
903f9c1a6e | ||
|
|
bdf0af2a9d | ||
|
|
71c92474e7 | ||
|
|
078e9d4164 | ||
|
|
08c4be7e2e | ||
|
|
579891461a | ||
|
|
ddffd66754 | ||
|
|
b43f991918 | ||
|
|
3852509c9e | ||
|
|
6e7bdbda5f | ||
|
|
6b87c4621a | ||
|
|
994d756a33 | ||
|
|
738f428026 | ||
|
|
62bce64275 | ||
|
|
58e6119fe4 | ||
|
|
2e223e0f0d | ||
|
|
fc06bc1257 | ||
|
|
b906affcce | ||
|
|
9b5745cdf0 | ||
|
|
1e1c8eafbd | ||
|
|
b9e1dbc72f | ||
|
|
61bc82c7df | ||
|
|
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 |
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
* text=auto
|
* text=auto
|
||||||
dist/index.js -text
|
/dist/index.js binary
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
* @zkochan
|
||||||
+2
-12
@@ -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']
|
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: github-actions
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
open-pull-requests-limit: 10
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
name: pr-check
|
||||||
|
|
||||||
|
on: [ pull_request ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-dist:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
|
||||||
|
with:
|
||||||
|
run_install: true
|
||||||
|
version: 9
|
||||||
|
|
||||||
|
- name: Update dist/index.js
|
||||||
|
run: pnpm run build
|
||||||
|
|
||||||
|
- name: Check for uncommitted changes in dist
|
||||||
|
run: git diff --exit-code dist/index.js
|
||||||
+299
-35
@@ -1,67 +1,331 @@
|
|||||||
name: Test Action
|
name: Test Action
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- push
|
pull_request:
|
||||||
- pull_request
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test_default_inputs:
|
smoke:
|
||||||
name: Test with default inputs
|
# Cross-OS coverage. Exercises the bootstrap install + PATH on each platform,
|
||||||
|
# the version-respects-request regression (#225 / #230 — Windows PATH shadow),
|
||||||
|
# and the bin_dest output regression (#247). Multi-version coverage on Linux
|
||||||
|
# so we don't pay 3x for major-version differences.
|
||||||
|
name: 'Smoke (${{ matrix.name }})'
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
pnpm:
|
include:
|
||||||
- 4.11.1
|
- name: 'ubuntu / v9.15.5'
|
||||||
os:
|
os: ubuntu-latest
|
||||||
- ubuntu-latest
|
version: '9.15.5'
|
||||||
- macos-latest
|
- name: 'ubuntu / v10.33.0'
|
||||||
- windows-latest
|
os: ubuntu-latest
|
||||||
|
version: '10.33.0'
|
||||||
|
- name: 'ubuntu / v9.15.5 / custom-dest'
|
||||||
|
os: ubuntu-latest
|
||||||
|
version: '9.15.5'
|
||||||
|
dest: '~/test/pnpm'
|
||||||
|
- name: 'macos / v9.15.5'
|
||||||
|
os: macos-latest
|
||||||
|
version: '9.15.5'
|
||||||
|
- name: 'windows / v9.15.5'
|
||||||
|
os: windows-latest
|
||||||
|
version: '9.15.5'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||||
|
|
||||||
- name: Run the action
|
- id: pnpm
|
||||||
|
name: Run the action
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: 4.11.1
|
version: ${{ matrix.version }}
|
||||||
|
dest: ${{ matrix.dest || '~/setup-pnpm' }}
|
||||||
|
|
||||||
- name: 'Test: which'
|
- name: 'Test: pnpm/pnpx on PATH report the requested version (incl. via bin_dest)'
|
||||||
run: which pnpm; which pnpx
|
# Pass paths via env, not template interpolation, so Windows
|
||||||
|
# backslashes in `bin_dest` aren't eaten by bash's escape handling.
|
||||||
|
env:
|
||||||
|
BIN_DEST: ${{ steps.pnpm.outputs.bin_dest }}
|
||||||
|
REQUIRED: ${{ matrix.version }}
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
which pnpm
|
||||||
|
which pnpx
|
||||||
|
actual="$(pnpm --version)"
|
||||||
|
echo "pnpm --version: ${actual}"
|
||||||
|
if [ "${actual}" != "${REQUIRED}" ]; then
|
||||||
|
echo "Expected pnpm version ${REQUIRED}, but got ${actual}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
bin_dest_version="$("$BIN_DEST/pnpm" --version)"
|
||||||
|
echo "bin_dest pnpm --version: ${bin_dest_version}"
|
||||||
|
if [ "${bin_dest_version}" != "${REQUIRED}" ]; then
|
||||||
|
echo "Expected ${REQUIRED} via bin_dest, but got ${bin_dest_version}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: 'Test: install'
|
- name: 'Test: install in a fresh project'
|
||||||
run: pnpm install
|
run: |
|
||||||
|
mkdir /tmp/test-project
|
||||||
|
cd /tmp/test-project
|
||||||
|
pnpm init
|
||||||
|
pnpm add is-odd
|
||||||
|
shell: bash
|
||||||
|
|
||||||
test_explicit_inputs:
|
manifest_pin:
|
||||||
name: Test with explicit inputs
|
# Folds the old test_package_manager_field, test_dev_engines, and
|
||||||
|
# test_dev_engines_on_fail_error jobs. The action's manifest handling is
|
||||||
|
# OS-independent, so ubuntu-only is sufficient.
|
||||||
|
name: 'Manifest pin: ${{ matrix.label }}'
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
pnpm:
|
include:
|
||||||
- 4.11.1
|
- label: 'packageManager pnpm@9.15.5 (#227)'
|
||||||
os:
|
manifest: '{"packageManager":"pnpm@9.15.5"}'
|
||||||
- ubuntu-latest
|
version: '9.15.5'
|
||||||
- macos-latest
|
- label: 'packageManager pnpm@10.33.0'
|
||||||
- windows-latest
|
manifest: '{"packageManager":"pnpm@10.33.0"}'
|
||||||
|
version: '10.33.0'
|
||||||
|
- label: 'devEngines onFail=download, exact'
|
||||||
|
manifest: '{"devEngines":{"packageManager":{"name":"pnpm","version":"9.15.5","onFail":"download"}}}'
|
||||||
|
version: '9.15.5'
|
||||||
|
- label: 'devEngines onFail=download, range'
|
||||||
|
manifest: '{"devEngines":{"packageManager":{"name":"pnpm","version":">=9.15.0","onFail":"download"}}}'
|
||||||
|
version: '>=9.15.0'
|
||||||
|
- label: 'devEngines onFail=error, exact (#252)'
|
||||||
|
manifest: '{"devEngines":{"packageManager":{"name":"pnpm","version":"9.15.5","onFail":"error"}}}'
|
||||||
|
version: '9.15.5'
|
||||||
|
- label: 'devEngines onFail=error, range (#252)'
|
||||||
|
manifest: '{"devEngines":{"packageManager":{"name":"pnpm","version":">=9.15.0","onFail":"error"}}}'
|
||||||
|
version: '>=9.15.0'
|
||||||
|
- label: 'explicit version: pnpm_config_pm_on_fail not exported'
|
||||||
|
# Regression guard for the af8e203 scope fix: when the user passes an
|
||||||
|
# explicit `version:` input, the action must NOT export
|
||||||
|
# pnpm_config_pm_on_fail=download, so the user's strict onFail policy
|
||||||
|
# is preserved. Asserted directly on the env var rather than pnpm
|
||||||
|
# runtime behavior — different pnpm majors read devEngines
|
||||||
|
# differently (v10 ignores it, v11+ honors it).
|
||||||
|
manifest: '{"devEngines":{"packageManager":{"name":"pnpm","version":"9.15.5","onFail":"error"}}}'
|
||||||
|
explicit_version: '10.33.0'
|
||||||
|
expect_pm_on_fail_unset: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||||
|
|
||||||
|
- name: Set up package.json
|
||||||
|
run: echo '${{ matrix.manifest }}' > package.json
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Run the action
|
- name: Run the action
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: 4.11.1
|
version: ${{ matrix.explicit_version }}
|
||||||
dest: ~/test/pnpm
|
|
||||||
bin_dest: ~/test/pnpm/.bin
|
|
||||||
registry: http://registry.yarnpkg.com/
|
|
||||||
|
|
||||||
- name: 'Test: which'
|
- name: 'Test: pnpm reports the pinned version'
|
||||||
run: which pnpm && which pnpx
|
if: ${{ !matrix.expect_pm_on_fail_unset }}
|
||||||
|
env:
|
||||||
|
REQUIRED: ${{ matrix.version }}
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
actual="$(pnpm --version)"
|
||||||
|
echo "pnpm version: ${actual}"
|
||||||
|
if [ "${REQUIRED}" = ">=9.15.0" ]; then
|
||||||
|
min="9.15.0"
|
||||||
|
if [ "$(printf '%s\n' "${min}" "${actual}" | sort -V | head -n1)" != "${min}" ]; then
|
||||||
|
echo "Expected pnpm version >= ${min}, but got ${actual}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ "${actual}" != "${REQUIRED}" ]; then
|
||||||
|
echo "Expected pnpm version ${REQUIRED}, but got ${actual}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: 'Test: install'
|
- name: 'Test: pnpm_config_pm_on_fail not exported (explicit version preserves strict policy)'
|
||||||
run: pnpm install
|
if: ${{ matrix.expect_pm_on_fail_unset }}
|
||||||
|
run: |
|
||||||
|
if [ -n "${pnpm_config_pm_on_fail:-}" ]; then
|
||||||
|
echo "Expected pnpm_config_pm_on_fail to be unset, but got: '${pnpm_config_pm_on_fail}'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "pnpm_config_pm_on_fail is unset, as expected"
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
standalone:
|
||||||
|
name: Standalone mode
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||||
|
|
||||||
|
- name: Run the action
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
version: 9.15.0
|
||||||
|
standalone: true
|
||||||
|
|
||||||
|
- name: 'Test: pnpm works'
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
which pnpm
|
||||||
|
actual="$(pnpm --version)"
|
||||||
|
if [ "${actual}" != "9.15.0" ]; then
|
||||||
|
echo "Expected 9.15.0, got ${actual}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
mkdir /tmp/test-standalone
|
||||||
|
cd /tmp/test-standalone
|
||||||
|
pnpm init
|
||||||
|
pnpm add is-odd
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
standalone_windows_self_update:
|
||||||
|
# Regression guard for the patchPnpmEnv PATH-shadow bug. When
|
||||||
|
# standalone: true on Windows AND the requested pnpm differs from the
|
||||||
|
# bootstrap, the previous patchPnpmEnv prepended node_modules/.bin to
|
||||||
|
# PATH; that directory contains an npm-created pnpm.cmd shim pointing
|
||||||
|
# at the BOOTSTRAP pnpm, which shadowed the self-updated pnpm at
|
||||||
|
# $PNPM_HOME/bin and caused `pnpm install` inside the action to run
|
||||||
|
# under the bootstrap version. Exercising a newer-pnpm-only flag
|
||||||
|
# (`--no-runtime`, added in 11.1.0) makes the regression assertable:
|
||||||
|
# if the bootstrap (11.0.4) handles the install, it errors with
|
||||||
|
# "Unknown option: 'runtime'".
|
||||||
|
name: 'Standalone Windows self-update (PATH regression)'
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||||
|
|
||||||
|
- name: Set up package.json with a minimal manifest
|
||||||
|
# run_install needs a manifest to install against. Removing the
|
||||||
|
# repo's existing pnpm-lock.yaml avoids frozen-lockfile mismatch.
|
||||||
|
run: |
|
||||||
|
rm -f pnpm-lock.yaml
|
||||||
|
echo '{"name":"sw","private":true,"packageManager":"pnpm@11.1.0"}' > package.json
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Run the action
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
version: 11.1.0
|
||||||
|
standalone: true
|
||||||
|
run_install: |
|
||||||
|
args: ['--no-runtime']
|
||||||
|
|
||||||
|
- name: 'Test: pnpm install completed under the self-updated pnpm'
|
||||||
|
# If the bug recurs, the previous step's run_install will have failed
|
||||||
|
# the job with "Unknown option: 'runtime'", so reaching this step
|
||||||
|
# implies success. Still verify the version on PATH matches request.
|
||||||
|
env:
|
||||||
|
REQUIRED: '11.1.0'
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
actual="$(pnpm --version)"
|
||||||
|
echo "pnpm --version: ${actual}"
|
||||||
|
if [ "${actual}" != "${REQUIRED}" ]; then
|
||||||
|
echo "Expected pnpm ${REQUIRED}, got ${actual}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
cache_store_path:
|
||||||
|
# Regression guard for #233. When package.json pins a pnpm major that
|
||||||
|
# differs from the bootstrap pnpm's major, the bootstrap reports its
|
||||||
|
# own STORE_VERSION from `pnpm store path` (the `store` command skips
|
||||||
|
# pnpm's auto-switch). The user's actual `pnpm install` runs under the
|
||||||
|
# pinned version and writes to a different STORE_VERSION, so the post
|
||||||
|
# step's saveCache then fails with "Path Validation Error". The fix is
|
||||||
|
# to self-update the bootstrap to the pinned version up front.
|
||||||
|
name: 'Cache store path matches install (#233): ${{ matrix.label }}'
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- label: 'packageManager pnpm@10.33.0'
|
||||||
|
manifest: '{"packageManager":"pnpm@10.33.0","dependencies":{"is-odd":"3.0.1"}}'
|
||||||
|
- label: 'devEngines exact pnpm@10.33.0'
|
||||||
|
manifest: '{"devEngines":{"packageManager":{"name":"pnpm","version":"10.33.0"}},"dependencies":{"is-odd":"3.0.1"}}'
|
||||||
|
- label: 'devEngines range >=10 <11'
|
||||||
|
manifest: '{"devEngines":{"packageManager":{"name":"pnpm","version":">=10 <11"}},"dependencies":{"is-odd":"3.0.1"}}'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||||
|
|
||||||
|
- name: Set up package.json
|
||||||
|
run: echo '${{ matrix.manifest }}' > package.json
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- id: pnpm
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
cache: true
|
||||||
|
run_install: |
|
||||||
|
- args: [--no-frozen-lockfile]
|
||||||
|
|
||||||
|
- name: 'Test: store path computed by the action exists on disk'
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
actual="$(pnpm store path --silent)"
|
||||||
|
echo "pnpm store path: ${actual}"
|
||||||
|
if [ ! -d "${actual}" ]; then
|
||||||
|
echo "Expected store path to exist on disk; cache save would fail"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
run_install:
|
||||||
|
name: 'run_install (${{ matrix.run_install.name }})'
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
run_install:
|
||||||
|
- name: 'null'
|
||||||
|
value: 'null'
|
||||||
|
- name: 'global'
|
||||||
|
value: |
|
||||||
|
args:
|
||||||
|
- --global
|
||||||
|
- --global-dir=./pnpm-global
|
||||||
|
- npm
|
||||||
|
- yarn
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||||
|
|
||||||
|
- name: Run the action
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
version: 9.15.5
|
||||||
|
run_install: ${{ matrix.run_install.value }}
|
||||||
|
|
||||||
|
- name: 'Test: pnpm works'
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
which pnpm
|
||||||
|
which pnpx
|
||||||
|
actual="$(pnpm --version)"
|
||||||
|
if [ "${actual}" != "9.15.5" ]; then
|
||||||
|
echo "Expected 9.15.5, got ${actual}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
|
|||||||
@@ -8,3 +8,5 @@ temp
|
|||||||
*.temp
|
*.temp
|
||||||
tmp.*
|
tmp.*
|
||||||
temp.*
|
temp.*
|
||||||
|
.pnpm-store
|
||||||
|
.claude
|
||||||
|
|||||||
@@ -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 `10.9.8`), or a version range (such as `10`, `10.x.x`, `10.9.x`, `^10.9.8`, `*`, 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`, _default:_ `pnpm-lock.yaml`) File path to the pnpm lockfile, whose contents hash will be used as a cache key. Accepts multiple paths delimited by newlines.
|
||||||
|
|
||||||
|
### `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,127 @@ 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:
|
||||||
|
install:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: pnpm/action-setup@v6
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v1.1.0
|
|
||||||
with:
|
with:
|
||||||
version: 4.11.1
|
version: 10
|
||||||
|
```
|
||||||
|
|
||||||
|
### 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@v6
|
||||||
|
```
|
||||||
|
|
||||||
|
### Install pnpm and a few npm packages
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
install:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- uses: pnpm/action-setup@v6
|
||||||
|
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@v6
|
||||||
|
|
||||||
|
- uses: pnpm/action-setup@v6
|
||||||
|
name: Install pnpm
|
||||||
|
with:
|
||||||
|
version: 10
|
||||||
|
cache: true
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Note:** You don't need to run `pnpm store prune` at the end; post-action has already taken care of that.
|
||||||
|
|
||||||
|
### Cache dependencies from multiple lockfiles
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cache-and-install-multiple:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- uses: pnpm/action-setup@v6
|
||||||
|
with:
|
||||||
|
version: 10
|
||||||
|
cache: true
|
||||||
|
cache_dependency_path: |
|
||||||
|
one/pnpm-lock.yaml
|
||||||
|
two/pnpm-lock.yaml
|
||||||
|
run_install: |
|
||||||
|
- cwd: one
|
||||||
|
- cwd: two
|
||||||
|
```
|
||||||
|
|
||||||
## 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/)
|
||||||
|
|||||||
+31
-13
@@ -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, whose contents hash will be used as a cache key. Accepts multiple paths delimited by newlines.
|
||||||
|
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: node24
|
||||||
main: dist/index.js
|
main: dist/index.js
|
||||||
|
post: dist/index.js
|
||||||
|
|||||||
Vendored
+335
-1
File diff suppressed because one or more lines are too long
+14
-10
@@ -1,20 +1,24 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:ncc": "ncc build --minify --no-source-map-register --no-cache dist/tsc/index.js --out dist/",
|
"build:bundle": "esbuild src/index.ts --bundle --platform=node --target=node24 --format=cjs --minify --outfile=dist/index.js --loader:.json=json",
|
||||||
"build": "tsc && pnpm run build:ncc",
|
"build": "pnpm run build:bundle",
|
||||||
"start": "pnpm run build && sh ./run.sh"
|
"start": "pnpm run build && sh ./run.sh",
|
||||||
|
"update-bootstrap": "node scripts/update-bootstrap.mjs"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"node-fetch": "^2.6.0",
|
"@actions/cache": "^6.0.0",
|
||||||
|
"@actions/core": "^3.0.0",
|
||||||
|
"@actions/exec": "^3.0.0",
|
||||||
|
"@actions/glob": "^0.5.0",
|
||||||
|
"@types/expand-tilde": "^2.0.2",
|
||||||
|
"@types/node": "^22.0.0",
|
||||||
"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",
|
"esbuild": "^0.27.4",
|
||||||
"@zeit/ncc": "^0.22.1"
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+784
-111
@@ -1,122 +1,795 @@
|
|||||||
|
lockfileVersion: '9.0'
|
||||||
|
|
||||||
|
settings:
|
||||||
|
autoInstallPeers: true
|
||||||
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
|
importers:
|
||||||
|
|
||||||
|
.:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@actions/core': 1.2.4
|
'@actions/cache':
|
||||||
'@types/expand-tilde': 2.0.0
|
specifier: ^6.0.0
|
||||||
'@types/node': 13.13.5
|
version: 6.2.0
|
||||||
'@types/node-fetch': 2.5.7
|
'@actions/core':
|
||||||
expand-tilde: 2.0.2
|
specifier: ^3.0.0
|
||||||
node-fetch: 2.6.0
|
version: 3.0.1
|
||||||
|
'@actions/exec':
|
||||||
|
specifier: ^3.0.0
|
||||||
|
version: 3.0.0
|
||||||
|
'@actions/glob':
|
||||||
|
specifier: ^0.5.0
|
||||||
|
version: 0.5.0
|
||||||
|
'@types/expand-tilde':
|
||||||
|
specifier: ^2.0.2
|
||||||
|
version: 2.0.2
|
||||||
|
'@types/node':
|
||||||
|
specifier: ^22.0.0
|
||||||
|
version: 22.19.11
|
||||||
|
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:
|
devDependencies:
|
||||||
'@zeit/ncc': 0.22.1
|
esbuild:
|
||||||
typescript: 3.8.3
|
specifier: ^0.27.4
|
||||||
lockfileVersion: 5.1
|
version: 0.27.4
|
||||||
|
typescript:
|
||||||
|
specifier: ^5.3.3
|
||||||
|
version: 5.7.3
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
/@actions/core/1.2.4:
|
|
||||||
dev: false
|
'@actions/cache@6.2.0':
|
||||||
resolution:
|
resolution: {integrity: sha512-Nv0xWRmbxfDbAn/70flO/F6tj2Nv4XTYMAsQHiDFSojCDfso/Zni+fRKa14ToI9hnmOW/rQcY1WYb6wsM7Pgwg==}
|
||||||
integrity: sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg==
|
|
||||||
/@types/expand-tilde/2.0.0:
|
'@actions/core@1.11.1':
|
||||||
dev: false
|
resolution: {integrity: sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==}
|
||||||
resolution:
|
|
||||||
integrity: sha512-17h/6MRHoetV2QVUVnUfrmaFCXNIFJ3uDJmXlklX2xDtlEb1W0OXLgP+qwND2Ibg/PtQfQi0vx19KGuPayjLiw==
|
'@actions/core@3.0.1':
|
||||||
/@types/node-fetch/2.5.7:
|
resolution: {integrity: sha512-a6d/Nwahm9fliVGRhdhofo40HjHQasUPusmc7vBfyky+7Z+P2A1J68zyFVaNcEclc/Se+eO595oAr5nwEIoIUA==}
|
||||||
dependencies:
|
|
||||||
'@types/node': 13.13.5
|
'@actions/exec@1.1.1':
|
||||||
form-data: 3.0.0
|
resolution: {integrity: sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==}
|
||||||
dev: false
|
|
||||||
resolution:
|
'@actions/exec@3.0.0':
|
||||||
integrity: sha512-o2WVNf5UhWRkxlf6eq+jMZDu7kjgpgJfl4xVNlvryc95O/6F2ld8ztKX+qu+Rjyet93WAWm5LjeX9H5FGkODvw==
|
resolution: {integrity: sha512-6xH/puSoNBXb72VPlZVm7vQ+svQpFyA96qdDBvhB8eNZOE8LtPf9L4oAsfzK/crCL8YZ+19fKYVnM63Sl+Xzlw==}
|
||||||
/@types/node/13.13.5:
|
|
||||||
dev: false
|
'@actions/glob@0.5.0':
|
||||||
resolution:
|
resolution: {integrity: sha512-tST2rjPvJLRZLuT9NMUtyBjvj9Yo0MiJS3ow004slMvm8GFM+Zv9HvMJ7HWzfUyJnGrJvDsYkWBaaG3YKXRtCw==}
|
||||||
integrity: sha512-3ySmiBYJPqgjiHA7oEaIo2Rzz0HrOZ7yrNO5HWyaE5q0lQ3BppDZ3N53Miz8bw2I7gh1/zir2MGVZBvpb1zq9g==
|
|
||||||
/@zeit/ncc/0.22.1:
|
'@actions/glob@0.6.1':
|
||||||
dev: true
|
resolution: {integrity: sha512-K4+2Ac5ILcf2ySdJCha+Pop9NcKjxqCL4xL4zI50dgB2PbXgC0+AcP011xfH4Of6b4QEJJg8dyZYv7zl4byTsw==}
|
||||||
|
|
||||||
|
'@actions/http-client@2.2.3':
|
||||||
|
resolution: {integrity: sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==}
|
||||||
|
|
||||||
|
'@actions/http-client@4.0.1':
|
||||||
|
resolution: {integrity: sha512-+Nvd1ImaOZBSoPbsUtEhv+1z99H12xzncCkz0a3RuehINE81FZSe2QTj3uvAPTcJX/SCzUQHQ0D1GrPMbrPitg==}
|
||||||
|
|
||||||
|
'@actions/io@1.1.3':
|
||||||
|
resolution: {integrity: sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==}
|
||||||
|
|
||||||
|
'@actions/io@3.0.2':
|
||||||
|
resolution: {integrity: sha512-nRBchcMM+QK1pdjO7/idu86rbJI5YHUKCvKs0KxnSYbVe3F51UfGxuZX4Qy/fWlp6l7gWFwIkrOzN+oUK03kfw==}
|
||||||
|
|
||||||
|
'@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-http-compat@2.5.0':
|
||||||
|
resolution: {integrity: sha512-BoSmXPx2er1Ai+wKlDvj29jIQespCNBwEmKyZVHO2kEFsWbGjAjwMCGzug3DJM5/QYIV3vej0S1zcU5bq9fa8w==}
|
||||||
|
engines: {node: '>=22.0.0'}
|
||||||
|
peerDependencies:
|
||||||
|
'@azure/core-client': ^1.10.0
|
||||||
|
'@azure/core-rest-pipeline': ^1.22.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.25.0':
|
||||||
|
resolution: {integrity: sha512-bMs8ekJLjX8wPV+9IPBges1SLPyuDtE9g5gLDWOpxzKcoOFQnpLGkbcT1tdw3FaAmDS1gnPmMmJ6y/T5B96kIA==}
|
||||||
|
engines: {node: '>=22.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/storage-blob@12.33.0':
|
||||||
|
resolution: {integrity: sha512-2SX8oP8PyblUcAFZSg39c8Ls+tFjavM6sBeV+qpw33mRzRhI/5hrFJmJ/x0H9xx5l6ECPvgSP8uPxqTeVbHNIA==}
|
||||||
|
engines: {node: '>=22.0.0'}
|
||||||
|
|
||||||
|
'@azure/storage-common@12.5.0':
|
||||||
|
resolution: {integrity: sha512-bttzuhQiCIwrkzjPDA+AtAR7dg19L/CC6ztcqJ5LfvWpXuys9mHp0UQ0udYnoUvv9SCT9KTR5kqFvFr0e6k0lQ==}
|
||||||
|
engines: {node: '>=22.0.0'}
|
||||||
|
|
||||||
|
'@esbuild/aix-ppc64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-cQPwL2mp2nSmHHJlCyoXgHGhbEPMrEEU5xhkcy3Hs/O7nGZqEpZ2sUtLaL9MORLtDfRvVl2/3PAuEkYZH0Ty8Q==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [ppc64]
|
||||||
|
os: [aix]
|
||||||
|
|
||||||
|
'@esbuild/android-arm64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-gdLscB7v75wRfu7QSm/zg6Rx29VLdy9eTr2t44sfTW7CxwAtQghZ4ZnqHk3/ogz7xao0QAgrkradbBzcqFPasw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [android]
|
||||||
|
|
||||||
|
'@esbuild/android-arm@0.27.4':
|
||||||
|
resolution: {integrity: sha512-X9bUgvxiC8CHAGKYufLIHGXPJWnr0OCdR0anD2e21vdvgCI8lIfqFbnoeOz7lBjdrAGUhqLZLcQo6MLhTO2DKQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm]
|
||||||
|
os: [android]
|
||||||
|
|
||||||
|
'@esbuild/android-x64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-PzPFnBNVF292sfpfhiyiXCGSn9HZg5BcAz+ivBuSsl6Rk4ga1oEXAamhOXRFyMcjwr2DVtm40G65N3GLeH1Lvw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [android]
|
||||||
|
|
||||||
|
'@esbuild/darwin-arm64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-b7xaGIwdJlht8ZFCvMkpDN6uiSmnxxK56N2GDTMYPr2/gzvfdQN8rTfBsvVKmIVY/X7EM+/hJKEIbbHs9oA4tQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [darwin]
|
||||||
|
|
||||||
|
'@esbuild/darwin-x64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-sR+OiKLwd15nmCdqpXMnuJ9W2kpy0KigzqScqHI3Hqwr7IXxBp3Yva+yJwoqh7rE8V77tdoheRYataNKL4QrPw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [darwin]
|
||||||
|
|
||||||
|
'@esbuild/freebsd-arm64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-jnfpKe+p79tCnm4GVav68A7tUFeKQwQyLgESwEAUzyxk/TJr4QdGog9sqWNcUbr/bZt/O/HXouspuQDd9JxFSw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [freebsd]
|
||||||
|
|
||||||
|
'@esbuild/freebsd-x64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-2kb4ceA/CpfUrIcTUl1wrP/9ad9Atrp5J94Lq69w7UwOMolPIGrfLSvAKJp0RTvkPPyn6CIWrNy13kyLikZRZQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [freebsd]
|
||||||
|
|
||||||
|
'@esbuild/linux-arm64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-7nQOttdzVGth1iz57kxg9uCz57dxQLHWxopL6mYuYthohPKEK0vU0C3O21CcBK6KDlkYVcnDXY099HcCDXd9dA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [linux]
|
||||||
|
|
||||||
|
'@esbuild/linux-arm@0.27.4':
|
||||||
|
resolution: {integrity: sha512-aBYgcIxX/wd5n2ys0yESGeYMGF+pv6g0DhZr3G1ZG4jMfruU9Tl1i2Z+Wnj9/KjGz1lTLCcorqE2viePZqj4Eg==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm]
|
||||||
|
os: [linux]
|
||||||
|
|
||||||
|
'@esbuild/linux-ia32@0.27.4':
|
||||||
|
resolution: {integrity: sha512-oPtixtAIzgvzYcKBQM/qZ3R+9TEUd1aNJQu0HhGyqtx6oS7qTpvjheIWBbes4+qu1bNlo2V4cbkISr8q6gRBFA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [ia32]
|
||||||
|
os: [linux]
|
||||||
|
|
||||||
|
'@esbuild/linux-loong64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-8mL/vh8qeCoRcFH2nM8wm5uJP+ZcVYGGayMavi8GmRJjuI3g1v6Z7Ni0JJKAJW+m0EtUuARb6Lmp4hMjzCBWzA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [loong64]
|
||||||
|
os: [linux]
|
||||||
|
|
||||||
|
'@esbuild/linux-mips64el@0.27.4':
|
||||||
|
resolution: {integrity: sha512-1RdrWFFiiLIW7LQq9Q2NES+HiD4NyT8Itj9AUeCl0IVCA459WnPhREKgwrpaIfTOe+/2rdntisegiPWn/r/aAw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [mips64el]
|
||||||
|
os: [linux]
|
||||||
|
|
||||||
|
'@esbuild/linux-ppc64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-tLCwNG47l3sd9lpfyx9LAGEGItCUeRCWeAx6x2Jmbav65nAwoPXfewtAdtbtit/pJFLUWOhpv0FpS6GQAmPrHA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [ppc64]
|
||||||
|
os: [linux]
|
||||||
|
|
||||||
|
'@esbuild/linux-riscv64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-BnASypppbUWyqjd1KIpU4AUBiIhVr6YlHx/cnPgqEkNoVOhHg+YiSVxM1RLfiy4t9cAulbRGTNCKOcqHrEQLIw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [riscv64]
|
||||||
|
os: [linux]
|
||||||
|
|
||||||
|
'@esbuild/linux-s390x@0.27.4':
|
||||||
|
resolution: {integrity: sha512-+eUqgb/Z7vxVLezG8bVB9SfBie89gMueS+I0xYh2tJdw3vqA/0ImZJ2ROeWwVJN59ihBeZ7Tu92dF/5dy5FttA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [s390x]
|
||||||
|
os: [linux]
|
||||||
|
|
||||||
|
'@esbuild/linux-x64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-S5qOXrKV8BQEzJPVxAwnryi2+Iq5pB40gTEIT69BQONqR7JH1EPIcQ/Uiv9mCnn05jff9umq/5nqzxlqTOg9NA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [linux]
|
||||||
|
|
||||||
|
'@esbuild/netbsd-arm64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-xHT8X4sb0GS8qTqiwzHqpY00C95DPAq7nAwX35Ie/s+LO9830hrMd3oX0ZMKLvy7vsonee73x0lmcdOVXFzd6Q==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [netbsd]
|
||||||
|
|
||||||
|
'@esbuild/netbsd-x64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-RugOvOdXfdyi5Tyv40kgQnI0byv66BFgAqjdgtAKqHoZTbTF2QqfQrFwa7cHEORJf6X2ht+l9ABLMP0dnKYsgg==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [netbsd]
|
||||||
|
|
||||||
|
'@esbuild/openbsd-arm64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-2MyL3IAaTX+1/qP0O1SwskwcwCoOI4kV2IBX1xYnDDqthmq5ArrW94qSIKCAuRraMgPOmG0RDTA74mzYNQA9ow==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [openbsd]
|
||||||
|
|
||||||
|
'@esbuild/openbsd-x64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-u8fg/jQ5aQDfsnIV6+KwLOf1CmJnfu1ShpwqdwC0uA7ZPwFws55Ngc12vBdeUdnuWoQYx/SOQLGDcdlfXhYmXQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [openbsd]
|
||||||
|
|
||||||
|
'@esbuild/openharmony-arm64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-JkTZrl6VbyO8lDQO3yv26nNr2RM2yZzNrNHEsj9bm6dOwwu9OYN28CjzZkH57bh4w0I2F7IodpQvUAEd1mbWXg==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [openharmony]
|
||||||
|
|
||||||
|
'@esbuild/sunos-x64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-/gOzgaewZJfeJTlsWhvUEmUG4tWEY2Spp5M20INYRg2ZKl9QPO3QEEgPeRtLjEWSW8FilRNacPOg8R1uaYkA6g==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [sunos]
|
||||||
|
|
||||||
|
'@esbuild/win32-arm64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-Z9SExBg2y32smoDQdf1HRwHRt6vAHLXcxD2uGgO/v2jK7Y718Ix4ndsbNMU/+1Qiem9OiOdaqitioZwxivhXYg==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [win32]
|
||||||
|
|
||||||
|
'@esbuild/win32-ia32@0.27.4':
|
||||||
|
resolution: {integrity: sha512-DAyGLS0Jz5G5iixEbMHi5KdiApqHBWMGzTtMiJ72ZOLhbu/bzxgAe8Ue8CTS3n3HbIUHQz/L51yMdGMeoxXNJw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [ia32]
|
||||||
|
os: [win32]
|
||||||
|
|
||||||
|
'@esbuild/win32-x64@0.27.4':
|
||||||
|
resolution: {integrity: sha512-+knoa0BDoeXgkNvvV1vvbZX4+hizelrkwmGJBdT17t8FNPwG2lKemmuMZlmaNQ3ws3DKKCxpb4zRZEIp3UxFCg==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [win32]
|
||||||
|
|
||||||
|
'@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@22.19.11':
|
||||||
|
resolution: {integrity: sha512-BH7YwL6rA93ReqeQS1c4bsPpcfOmJasG+Fkr6Y59q83f9M1WcBRHR2vM+P9eOisYRcN3ujQoiZY8uk5W+1WL8w==}
|
||||||
|
|
||||||
|
'@typespec/ts-http-runtime@0.3.9':
|
||||||
|
resolution: {integrity: sha512-edSdeAqkdxBVzA1yL1LrLCml1YjyCVvPMtMqJpbF+6K609tHe8V6sQUzFQSGcYNhcuhOceZtjvN32+mpIth30A==}
|
||||||
|
engines: {node: '>=22.0.0'}
|
||||||
|
|
||||||
|
agent-base@7.1.4:
|
||||||
|
resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}
|
||||||
|
engines: {node: '>= 14'}
|
||||||
|
|
||||||
|
balanced-match@1.0.2:
|
||||||
|
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
|
||||||
|
|
||||||
|
brace-expansion@1.1.12:
|
||||||
|
resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
esbuild@0.27.4:
|
||||||
|
resolution: {integrity: sha512-Rq4vbHnYkK5fws5NF7MYTU68FPRE1ajX7heQ/8QXXWqNgqqJ/GkmmyxIzUnf2Sr/bakf8l54716CcMGHYhMrrQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
resolution:
|
|
||||||
integrity: sha512-Qq3bMuonkcnV/96jhy9SQYdh39NXHxNMJ1O31ZFzWG9n52fR2DLtgrNzhj/ahlEjnBziMLGVWDbaS9sf03/fEw==
|
events@3.3.0:
|
||||||
/asynckit/0.4.0:
|
resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}
|
||||||
dev: false
|
engines: {node: '>=0.8.x'}
|
||||||
resolution:
|
|
||||||
integrity: sha1-x57Zf380y48robyXkLzDZkdLS3k=
|
expand-tilde@2.0.2:
|
||||||
/combined-stream/1.0.8:
|
resolution: {integrity: sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==}
|
||||||
|
engines: {node: '>=0.10.0'}
|
||||||
|
|
||||||
|
fast-xml-parser@5.2.5:
|
||||||
|
resolution: {integrity: sha512-pfX9uG9Ki0yekDHx2SiuRIyFdyAr1kMIMitPvb0YBo8SUfKvia7w7FIyd/l6av85pFYRhZscS75MwMnbvY+hcQ==}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
|
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'}
|
||||||
|
|
||||||
|
minimatch@3.1.2:
|
||||||
|
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
|
||||||
|
|
||||||
|
ms@2.1.3:
|
||||||
|
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
|
||||||
|
|
||||||
|
parse-passwd@1.0.0:
|
||||||
|
resolution: {integrity: sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==}
|
||||||
|
engines: {node: '>=0.10.0'}
|
||||||
|
|
||||||
|
semver@7.8.5:
|
||||||
|
resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==}
|
||||||
|
engines: {node: '>=10'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
|
strnum@2.1.1:
|
||||||
|
resolution: {integrity: sha512-7ZvoFTiCnGxBtDqJ//Cu6fWtZtc7Y3x+QOirG15wztbdngGSkht27o2pyGWrVy0b4WAy3jbKmnoK6g5VlVNUUw==}
|
||||||
|
|
||||||
|
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.21.0:
|
||||||
|
resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
|
||||||
|
|
||||||
|
undici@5.29.0:
|
||||||
|
resolution: {integrity: sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==}
|
||||||
|
engines: {node: '>=14.0'}
|
||||||
|
|
||||||
|
undici@6.28.1:
|
||||||
|
resolution: {integrity: sha512-zWpdTVD54H48CIybL0rWQ3ukpb9d23wM7eH5RtfdmeP70cWHNjtfo7P4vZX+5CoDcO53J4Pu5uXp7lNfjc6DRA==}
|
||||||
|
engines: {node: '>=18.17'}
|
||||||
|
|
||||||
|
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@6.2.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
delayed-stream: 1.0.0
|
'@actions/core': 3.0.1
|
||||||
dev: false
|
'@actions/exec': 3.0.0
|
||||||
engines:
|
'@actions/glob': 0.6.1
|
||||||
node: '>= 0.8'
|
'@actions/http-client': 4.0.1
|
||||||
resolution:
|
'@actions/io': 3.0.2
|
||||||
integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
|
'@azure/core-rest-pipeline': 1.25.0
|
||||||
/delayed-stream/1.0.0:
|
'@azure/storage-blob': 12.33.0
|
||||||
dev: false
|
'@protobuf-ts/runtime-rpc': 2.11.1
|
||||||
engines:
|
semver: 7.8.5
|
||||||
node: '>=0.4.0'
|
transitivePeerDependencies:
|
||||||
resolution:
|
- supports-color
|
||||||
integrity: sha1-3zrhmayt+31ECqrgsp4icrJOxhk=
|
|
||||||
/expand-tilde/2.0.2:
|
'@actions/core@1.11.1':
|
||||||
|
dependencies:
|
||||||
|
'@actions/exec': 1.1.1
|
||||||
|
'@actions/http-client': 2.2.3
|
||||||
|
|
||||||
|
'@actions/core@3.0.1':
|
||||||
|
dependencies:
|
||||||
|
'@actions/exec': 3.0.0
|
||||||
|
'@actions/http-client': 4.0.1
|
||||||
|
|
||||||
|
'@actions/exec@1.1.1':
|
||||||
|
dependencies:
|
||||||
|
'@actions/io': 1.1.3
|
||||||
|
|
||||||
|
'@actions/exec@3.0.0':
|
||||||
|
dependencies:
|
||||||
|
'@actions/io': 3.0.2
|
||||||
|
|
||||||
|
'@actions/glob@0.5.0':
|
||||||
|
dependencies:
|
||||||
|
'@actions/core': 1.11.1
|
||||||
|
minimatch: 3.1.2
|
||||||
|
|
||||||
|
'@actions/glob@0.6.1':
|
||||||
|
dependencies:
|
||||||
|
'@actions/core': 3.0.1
|
||||||
|
minimatch: 3.1.2
|
||||||
|
|
||||||
|
'@actions/http-client@2.2.3':
|
||||||
|
dependencies:
|
||||||
|
tunnel: 0.0.6
|
||||||
|
undici: 5.29.0
|
||||||
|
|
||||||
|
'@actions/http-client@4.0.1':
|
||||||
|
dependencies:
|
||||||
|
tunnel: 0.0.6
|
||||||
|
undici: 6.28.1
|
||||||
|
|
||||||
|
'@actions/io@1.1.3': {}
|
||||||
|
|
||||||
|
'@actions/io@3.0.2': {}
|
||||||
|
|
||||||
|
'@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.25.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.25.0
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@azure/core-http-compat@2.5.0(@azure/core-client@1.10.0)(@azure/core-rest-pipeline@1.25.0)':
|
||||||
|
dependencies:
|
||||||
|
'@azure/abort-controller': 2.1.2
|
||||||
|
'@azure/core-client': 1.10.0
|
||||||
|
'@azure/core-rest-pipeline': 1.25.0
|
||||||
|
|
||||||
|
'@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.25.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.9
|
||||||
|
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.9
|
||||||
|
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.9
|
||||||
|
tslib: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@azure/storage-blob@12.33.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.25.0
|
||||||
|
'@azure/core-tracing': 1.3.0
|
||||||
|
'@azure/core-util': 1.13.0
|
||||||
|
'@azure/core-xml': 1.5.0
|
||||||
|
'@azure/logger': 1.3.0
|
||||||
|
'@azure/storage-common': 12.5.0(@azure/core-client@1.10.0)
|
||||||
|
events: 3.3.0
|
||||||
|
tslib: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@azure/storage-common@12.5.0(@azure/core-client@1.10.0)':
|
||||||
|
dependencies:
|
||||||
|
'@azure/abort-controller': 2.1.2
|
||||||
|
'@azure/core-auth': 1.10.0
|
||||||
|
'@azure/core-http-compat': 2.5.0(@azure/core-client@1.10.0)(@azure/core-rest-pipeline@1.25.0)
|
||||||
|
'@azure/core-rest-pipeline': 1.25.0
|
||||||
|
'@azure/core-tracing': 1.3.0
|
||||||
|
'@azure/core-util': 1.13.0
|
||||||
|
'@azure/logger': 1.3.0
|
||||||
|
events: 3.3.0
|
||||||
|
tslib: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- '@azure/core-client'
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@esbuild/aix-ppc64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/android-arm64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/android-arm@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/android-x64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/darwin-arm64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/darwin-x64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/freebsd-arm64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/freebsd-x64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/linux-arm64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/linux-arm@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/linux-ia32@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/linux-loong64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/linux-mips64el@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/linux-ppc64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/linux-riscv64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/linux-s390x@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/linux-x64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/netbsd-arm64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/netbsd-x64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/openbsd-arm64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/openbsd-x64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/openharmony-arm64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/sunos-x64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/win32-arm64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/win32-ia32@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@esbuild/win32-x64@0.27.4':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@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@22.19.11':
|
||||||
|
dependencies:
|
||||||
|
undici-types: 6.21.0
|
||||||
|
|
||||||
|
'@typespec/ts-http-runtime@0.3.9':
|
||||||
|
dependencies:
|
||||||
|
http-proxy-agent: 7.0.2
|
||||||
|
https-proxy-agent: 7.0.6
|
||||||
|
tslib: 2.8.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
agent-base@7.1.4: {}
|
||||||
|
|
||||||
|
balanced-match@1.0.2: {}
|
||||||
|
|
||||||
|
brace-expansion@1.1.12:
|
||||||
|
dependencies:
|
||||||
|
balanced-match: 1.0.2
|
||||||
|
concat-map: 0.0.1
|
||||||
|
|
||||||
|
concat-map@0.0.1: {}
|
||||||
|
|
||||||
|
debug@4.4.1:
|
||||||
|
dependencies:
|
||||||
|
ms: 2.1.3
|
||||||
|
|
||||||
|
esbuild@0.27.4:
|
||||||
|
optionalDependencies:
|
||||||
|
'@esbuild/aix-ppc64': 0.27.4
|
||||||
|
'@esbuild/android-arm': 0.27.4
|
||||||
|
'@esbuild/android-arm64': 0.27.4
|
||||||
|
'@esbuild/android-x64': 0.27.4
|
||||||
|
'@esbuild/darwin-arm64': 0.27.4
|
||||||
|
'@esbuild/darwin-x64': 0.27.4
|
||||||
|
'@esbuild/freebsd-arm64': 0.27.4
|
||||||
|
'@esbuild/freebsd-x64': 0.27.4
|
||||||
|
'@esbuild/linux-arm': 0.27.4
|
||||||
|
'@esbuild/linux-arm64': 0.27.4
|
||||||
|
'@esbuild/linux-ia32': 0.27.4
|
||||||
|
'@esbuild/linux-loong64': 0.27.4
|
||||||
|
'@esbuild/linux-mips64el': 0.27.4
|
||||||
|
'@esbuild/linux-ppc64': 0.27.4
|
||||||
|
'@esbuild/linux-riscv64': 0.27.4
|
||||||
|
'@esbuild/linux-s390x': 0.27.4
|
||||||
|
'@esbuild/linux-x64': 0.27.4
|
||||||
|
'@esbuild/netbsd-arm64': 0.27.4
|
||||||
|
'@esbuild/netbsd-x64': 0.27.4
|
||||||
|
'@esbuild/openbsd-arm64': 0.27.4
|
||||||
|
'@esbuild/openbsd-x64': 0.27.4
|
||||||
|
'@esbuild/openharmony-arm64': 0.27.4
|
||||||
|
'@esbuild/sunos-x64': 0.27.4
|
||||||
|
'@esbuild/win32-arm64': 0.27.4
|
||||||
|
'@esbuild/win32-ia32': 0.27.4
|
||||||
|
'@esbuild/win32-x64': 0.27.4
|
||||||
|
|
||||||
|
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'
|
|
||||||
resolution:
|
|
||||||
integrity: sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=
|
|
||||||
/form-data/3.0.0:
|
|
||||||
dependencies:
|
dependencies:
|
||||||
asynckit: 0.4.0
|
strnum: 2.1.1
|
||||||
combined-stream: 1.0.8
|
|
||||||
mime-types: 2.1.27
|
homedir-polyfill@1.0.3:
|
||||||
dev: false
|
|
||||||
engines:
|
|
||||||
node: '>= 6'
|
|
||||||
resolution:
|
|
||||||
integrity: sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==
|
|
||||||
/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:
|
minimatch@3.1.2:
|
||||||
dev: false
|
dependencies:
|
||||||
engines:
|
brace-expansion: 1.1.12
|
||||||
node: '>=0.10.0'
|
|
||||||
resolution:
|
ms@2.1.3: {}
|
||||||
integrity: sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=
|
|
||||||
/typescript/3.8.3:
|
parse-passwd@1.0.0: {}
|
||||||
dev: true
|
|
||||||
engines:
|
semver@7.8.5: {}
|
||||||
node: '>=4.2.0'
|
|
||||||
hasBin: true
|
strnum@2.1.1: {}
|
||||||
resolution:
|
|
||||||
integrity: sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==
|
tslib@2.8.1: {}
|
||||||
specifiers:
|
|
||||||
'@actions/core': ^1.2.4
|
tunnel@0.0.6: {}
|
||||||
'@types/expand-tilde': ^2.0.0
|
|
||||||
'@types/node': ^13.13.5
|
typescript@5.7.3: {}
|
||||||
'@types/node-fetch': ^2.5.7
|
|
||||||
'@zeit/ncc': ^0.22.1
|
undici-types@6.21.0: {}
|
||||||
expand-tilde: ^2.0.2
|
|
||||||
node-fetch: ^2.6.0
|
undici@5.29.0:
|
||||||
typescript: ^3.8.3
|
dependencies:
|
||||||
|
'@fastify/busboy': 2.1.1
|
||||||
|
|
||||||
|
undici@6.28.1: {}
|
||||||
|
|
||||||
|
yaml@2.7.0: {}
|
||||||
|
|
||||||
|
zod@3.24.1: {}
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
packages:
|
||||||
|
- '.'
|
||||||
|
allowBuilds:
|
||||||
|
esbuild: true
|
||||||
@@ -1,6 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"pinVersions": false,
|
"pinVersions": false,
|
||||||
"extends": [
|
"extends": [
|
||||||
"config:base"
|
"config:base"
|
||||||
|
],
|
||||||
|
"ignoreDeps": [
|
||||||
|
"ajv"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
// Usage: node scripts/update-bootstrap.mjs [version]
|
||||||
|
// If version is omitted, fetches the latest next-11 tag from npm.
|
||||||
|
// Regenerates the bootstrap lockfiles used by action-setup to install pnpm via npm.
|
||||||
|
|
||||||
|
import { execSync } from 'child_process'
|
||||||
|
import { mkdtempSync, rmSync, readFileSync, writeFileSync } from 'fs'
|
||||||
|
import { join } from 'path'
|
||||||
|
import { tmpdir } from 'os'
|
||||||
|
|
||||||
|
const BOOTSTRAP_DIR = new URL('../src/install-pnpm/bootstrap/', import.meta.url).pathname
|
||||||
|
|
||||||
|
const version = process.argv[2] || resolveLatestVersion()
|
||||||
|
|
||||||
|
console.log(`Updating bootstrap lockfiles to pnpm@${version} ...`)
|
||||||
|
|
||||||
|
generateLock('pnpm-lock.json', { pnpm: version }, 'bootstrap-pnpm')
|
||||||
|
generateLock('exe-lock.json', { '@pnpm/exe': version }, 'bootstrap-exe')
|
||||||
|
|
||||||
|
console.log('Done!')
|
||||||
|
|
||||||
|
function resolveLatestVersion() {
|
||||||
|
const json = execSync('npm view @pnpm/exe dist-tags --json', { encoding: 'utf8' })
|
||||||
|
const tags = JSON.parse(json)
|
||||||
|
const version = tags['next-11'] || tags['latest']
|
||||||
|
if (!version) {
|
||||||
|
console.error('Could not determine latest pnpm version from npm dist-tags')
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
|
return version
|
||||||
|
}
|
||||||
|
|
||||||
|
function generateLock(filename, dependencies, name) {
|
||||||
|
const tmp = mkdtempSync(join(tmpdir(), 'pnpm-bootstrap-'))
|
||||||
|
try {
|
||||||
|
writeFileSync(join(tmp, 'package.json'), JSON.stringify({ private: true, dependencies }))
|
||||||
|
execSync('npm install --package-lock-only --ignore-scripts', { cwd: tmp, stdio: 'pipe' })
|
||||||
|
const lock = readFileSync(join(tmp, 'package-lock.json'), 'utf8')
|
||||||
|
const parsed = JSON.parse(lock)
|
||||||
|
parsed.name = name
|
||||||
|
writeFileSync(join(BOOTSTRAP_DIR, filename), JSON.stringify(parsed, null, 2) + '\n')
|
||||||
|
console.log(` ${filename} -> ${Object.values(dependencies)[0]}@${version}`)
|
||||||
|
} finally {
|
||||||
|
rmSync(tmp, { recursive: true, force: true })
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
|
}
|
||||||
@@ -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
|
||||||
@@ -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}`)
|
||||||
|
}
|
||||||
+31
-6
@@ -1,14 +1,39 @@
|
|||||||
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() {
|
||||||
|
if (getState('is_post') === 'true') {
|
||||||
|
await runPost()
|
||||||
|
} else {
|
||||||
|
await runMain()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function runMain() {
|
||||||
const inputs = getInputs()
|
const inputs = getInputs()
|
||||||
await install(inputs).then(() => {
|
saveState('inputs', inputs)
|
||||||
|
saveState('is_post', 'true')
|
||||||
|
|
||||||
|
const binDest = await installPnpm(inputs)
|
||||||
|
if (binDest === undefined) return
|
||||||
console.log('Installation Completed!')
|
console.log('Installation Completed!')
|
||||||
setOutputs(inputs)
|
setOutputs(inputs, binDest)
|
||||||
})
|
|
||||||
|
await restoreCache(inputs)
|
||||||
|
|
||||||
|
pnpmInstall(inputs)
|
||||||
|
}
|
||||||
|
|
||||||
|
async function runPost() {
|
||||||
|
const inputs = JSON.parse(getState('inputs')) as Inputs
|
||||||
|
pruneStore(inputs)
|
||||||
|
await saveCache(inputs)
|
||||||
}
|
}
|
||||||
|
|
||||||
main().catch(error => {
|
main().catch(error => {
|
||||||
|
|||||||
+14
-7
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,327 @@
|
|||||||
|
{
|
||||||
|
"name": "bootstrap-exe",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"dependencies": {
|
||||||
|
"@pnpm/exe": "11.7.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@pnpm/exe": {
|
||||||
|
"version": "11.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pnpm/exe/-/exe-11.7.0.tgz",
|
||||||
|
"integrity": "sha512-3CujpSSp2PIDE0pwu7mWSdjhdDqaZa7OppVooECWWaNEoA/z66s9FZts1MhDO+2yq1XER4gBHh84DVbFN/r1rA==",
|
||||||
|
"hasInstallScript": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@reflink/reflink": "0.1.19",
|
||||||
|
"detect-libc": "^2.1.2"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"pn": "pn",
|
||||||
|
"pnpm": "pnpm",
|
||||||
|
"pnpx": "pnpx",
|
||||||
|
"pnx": "pnx"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/pnpm"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"@pnpm/linux-arm64": "11.7.0",
|
||||||
|
"@pnpm/linux-x64": "11.7.0",
|
||||||
|
"@pnpm/linuxstatic-arm64": "11.7.0",
|
||||||
|
"@pnpm/linuxstatic-x64": "11.7.0",
|
||||||
|
"@pnpm/macos-arm64": "11.7.0",
|
||||||
|
"@pnpm/win-arm64": "11.7.0",
|
||||||
|
"@pnpm/win-x64": "11.7.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@pnpm/linux-arm64": {
|
||||||
|
"version": "11.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pnpm/linux-arm64/-/linux-arm64-11.7.0.tgz",
|
||||||
|
"integrity": "sha512-ANTX2SlMO+d2y/4bYQhHCwHPX7gSSADJ5+pMUIiDFzIsybnFFaJdZboaFfq9NOxCbETcnDxqZ95Rz3+NHx1JIw==",
|
||||||
|
"cpu": [
|
||||||
|
"arm64"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/pnpm"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@pnpm/linux-x64": {
|
||||||
|
"version": "11.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pnpm/linux-x64/-/linux-x64-11.7.0.tgz",
|
||||||
|
"integrity": "sha512-fr75tqixXoS8cnA81HQIomjOGEPnsOsd3xCDL5pMNY5raOXbKurtgRV+RjATvjxlJxSLIVFKegABlxAiB7q72A==",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/pnpm"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@pnpm/linuxstatic-arm64": {
|
||||||
|
"version": "11.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pnpm/linuxstatic-arm64/-/linuxstatic-arm64-11.7.0.tgz",
|
||||||
|
"integrity": "sha512-Q++pgzvXkGeqnVRl26/uqmpMGdttQus0rGyL3XIfYGLCi8ZfajYUaCKdZID2MH7+CNOuugWDdFDup3r7BR7Rfg==",
|
||||||
|
"cpu": [
|
||||||
|
"arm64"
|
||||||
|
],
|
||||||
|
"libc": [
|
||||||
|
"musl"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/pnpm"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@pnpm/linuxstatic-x64": {
|
||||||
|
"version": "11.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pnpm/linuxstatic-x64/-/linuxstatic-x64-11.7.0.tgz",
|
||||||
|
"integrity": "sha512-z1+exW6ocU/rmOvJnmU3FUBJYaryCUqFoaXN6KZW5BqTj7BPJb7HJcAyXRlirNZMJlEiUY5rXbfStGPQJhGsVA==",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"libc": [
|
||||||
|
"musl"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/pnpm"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@pnpm/macos-arm64": {
|
||||||
|
"version": "11.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pnpm/macos-arm64/-/macos-arm64-11.7.0.tgz",
|
||||||
|
"integrity": "sha512-gD34/k3JT5oab4BYaqrUor3e4VdwXvkfLNlEI+lvDtX1MHT+2Nauc9p9NsQnpn1zE8blQEflzbF8wAUQ6Dmvkw==",
|
||||||
|
"cpu": [
|
||||||
|
"arm64"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"darwin"
|
||||||
|
],
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/pnpm"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@pnpm/win-arm64": {
|
||||||
|
"version": "11.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pnpm/win-arm64/-/win-arm64-11.7.0.tgz",
|
||||||
|
"integrity": "sha512-hRTcDmm2j7KoRwbqNo0rUAu9A1kVJN98Eob7H09U0uPJbEMax85JGOmERkT3Lf6HjVJuFNBvfaJ3OTI3HmlVGg==",
|
||||||
|
"cpu": [
|
||||||
|
"arm64"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"win32"
|
||||||
|
],
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/pnpm"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@pnpm/win-x64": {
|
||||||
|
"version": "11.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pnpm/win-x64/-/win-x64-11.7.0.tgz",
|
||||||
|
"integrity": "sha512-r/1NuKY7Z+6ZXVIzVrUEMj6TTEBdR63geV4Rlm8HKEhgQTdxyIsJoqV3FJGqoyzbRaScObqAwRfMaK9dskPddQ==",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"win32"
|
||||||
|
],
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/pnpm"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@reflink/reflink": {
|
||||||
|
"version": "0.1.19",
|
||||||
|
"resolved": "https://registry.npmjs.org/@reflink/reflink/-/reflink-0.1.19.tgz",
|
||||||
|
"integrity": "sha512-DmCG8GzysnCZ15bres3N5AHCmwBwYgp0As6xjhQ47rAUTUXxJiK+lLUxaGsX3hd/30qUpVElh05PbGuxRPgJwA==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"@reflink/reflink-darwin-arm64": "0.1.19",
|
||||||
|
"@reflink/reflink-darwin-x64": "0.1.19",
|
||||||
|
"@reflink/reflink-linux-arm64-gnu": "0.1.19",
|
||||||
|
"@reflink/reflink-linux-arm64-musl": "0.1.19",
|
||||||
|
"@reflink/reflink-linux-x64-gnu": "0.1.19",
|
||||||
|
"@reflink/reflink-linux-x64-musl": "0.1.19",
|
||||||
|
"@reflink/reflink-win32-arm64-msvc": "0.1.19",
|
||||||
|
"@reflink/reflink-win32-x64-msvc": "0.1.19"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@reflink/reflink-darwin-arm64": {
|
||||||
|
"version": "0.1.19",
|
||||||
|
"resolved": "https://registry.npmjs.org/@reflink/reflink-darwin-arm64/-/reflink-darwin-arm64-0.1.19.tgz",
|
||||||
|
"integrity": "sha512-ruy44Lpepdk1FqDz38vExBY/PVUsjxZA+chd9wozjUH9JjuDT/HEaQYA6wYN9mf041l0yLVar6BCZuWABJvHSA==",
|
||||||
|
"cpu": [
|
||||||
|
"arm64"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"darwin"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@reflink/reflink-darwin-x64": {
|
||||||
|
"version": "0.1.19",
|
||||||
|
"resolved": "https://registry.npmjs.org/@reflink/reflink-darwin-x64/-/reflink-darwin-x64-0.1.19.tgz",
|
||||||
|
"integrity": "sha512-By85MSWrMZa+c26TcnAy8SDk0sTUkYlNnwknSchkhHpGXOtjNDUOxJE9oByBnGbeuIE1PiQsxDG3Ud+IVV9yuA==",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"darwin"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@reflink/reflink-linux-arm64-gnu": {
|
||||||
|
"version": "0.1.19",
|
||||||
|
"resolved": "https://registry.npmjs.org/@reflink/reflink-linux-arm64-gnu/-/reflink-linux-arm64-gnu-0.1.19.tgz",
|
||||||
|
"integrity": "sha512-7P+er8+rP9iNeN+bfmccM4hTAaLP6PQJPKWSA4iSk2bNvo6KU6RyPgYeHxXmzNKzPVRcypZQTpFgstHam6maVg==",
|
||||||
|
"cpu": [
|
||||||
|
"arm64"
|
||||||
|
],
|
||||||
|
"libc": [
|
||||||
|
"glibc"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@reflink/reflink-linux-arm64-musl": {
|
||||||
|
"version": "0.1.19",
|
||||||
|
"resolved": "https://registry.npmjs.org/@reflink/reflink-linux-arm64-musl/-/reflink-linux-arm64-musl-0.1.19.tgz",
|
||||||
|
"integrity": "sha512-37iO/Dp6m5DDaC2sf3zPtx/hl9FV3Xze4xoYidrxxS9bgP3S8ALroxRK6xBG/1TtfXKTvolvp+IjrUU6ujIGmA==",
|
||||||
|
"cpu": [
|
||||||
|
"arm64"
|
||||||
|
],
|
||||||
|
"libc": [
|
||||||
|
"musl"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@reflink/reflink-linux-x64-gnu": {
|
||||||
|
"version": "0.1.19",
|
||||||
|
"resolved": "https://registry.npmjs.org/@reflink/reflink-linux-x64-gnu/-/reflink-linux-x64-gnu-0.1.19.tgz",
|
||||||
|
"integrity": "sha512-jbI8jvuYCaA3MVUdu8vLoLAFqC+iNMpiSuLbxlAgg7x3K5bsS8nOpTRnkLF7vISJ+rVR8W+7ThXlXlUQ93ulkw==",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"libc": [
|
||||||
|
"glibc"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@reflink/reflink-linux-x64-musl": {
|
||||||
|
"version": "0.1.19",
|
||||||
|
"resolved": "https://registry.npmjs.org/@reflink/reflink-linux-x64-musl/-/reflink-linux-x64-musl-0.1.19.tgz",
|
||||||
|
"integrity": "sha512-e9FBWDe+lv7QKAwtKOt6A2W/fyy/aEEfr0g6j/hWzvQcrzHCsz07BNQYlNOjTfeytrtLU7k449H1PI95jA4OjQ==",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"libc": [
|
||||||
|
"musl"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@reflink/reflink-win32-arm64-msvc": {
|
||||||
|
"version": "0.1.19",
|
||||||
|
"resolved": "https://registry.npmjs.org/@reflink/reflink-win32-arm64-msvc/-/reflink-win32-arm64-msvc-0.1.19.tgz",
|
||||||
|
"integrity": "sha512-09PxnVIQcd+UOn4WAW73WU6PXL7DwGS6wPlkMhMg2zlHHG65F3vHepOw06HFCq+N42qkaNAc8AKIabWvtk6cIQ==",
|
||||||
|
"cpu": [
|
||||||
|
"arm64"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"win32"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@reflink/reflink-win32-x64-msvc": {
|
||||||
|
"version": "0.1.19",
|
||||||
|
"resolved": "https://registry.npmjs.org/@reflink/reflink-win32-x64-msvc/-/reflink-win32-x64-msvc-0.1.19.tgz",
|
||||||
|
"integrity": "sha512-E//yT4ni2SyhwP8JRjVGWr3cbnhWDiPLgnQ66qqaanjjnMiu3O/2tjCPQXlcGc/DEYofpDc9fvhv6tALQsMV9w==",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"win32"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/detect-libc": {
|
||||||
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
|
||||||
|
"integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"name": "bootstrap-pnpm",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"dependencies": {
|
||||||
|
"pnpm": "11.7.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/pnpm": {
|
||||||
|
"version": "11.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/pnpm/-/pnpm-11.7.0.tgz",
|
||||||
|
"integrity": "sha512-GcyFLBIMcSV2DyRD7mvgyltA+fUFmN4aCaHxd1A+AQ5Xwjx3ZG4B52HeWb+HT7IqM5jDOrlpH8E+uUa28PTWIA==",
|
||||||
|
"license": "MIT",
|
||||||
|
"bin": {
|
||||||
|
"pn": "bin/pnpm.mjs",
|
||||||
|
"pnpm": "bin/pnpm.mjs",
|
||||||
|
"pnpx": "bin/pnpx.mjs",
|
||||||
|
"pnx": "bin/pnpx.mjs"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22.13"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/pnpm"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import { setFailed, startGroup, endGroup } from '@actions/core'
|
||||||
|
import { Inputs } from '../inputs'
|
||||||
|
import runSelfInstaller from './run'
|
||||||
|
|
||||||
|
export { runSelfInstaller }
|
||||||
|
|
||||||
|
export async function install(inputs: Inputs): Promise<string | undefined> {
|
||||||
|
startGroup('Running self-installer...')
|
||||||
|
const { exitCode, binDest } = await runSelfInstaller(inputs)
|
||||||
|
endGroup()
|
||||||
|
if (exitCode) {
|
||||||
|
setFailed(`Something went wrong, self-installer exits with code ${exitCode}`)
|
||||||
|
return undefined
|
||||||
|
}
|
||||||
|
return binDest
|
||||||
|
}
|
||||||
|
|
||||||
|
export default install
|
||||||
@@ -0,0 +1,208 @@
|
|||||||
|
import { addPath, exportVariable } from '@actions/core'
|
||||||
|
import { spawn } from 'child_process'
|
||||||
|
import { rm, writeFile, mkdir, symlink } from 'fs/promises'
|
||||||
|
import { readFileSync, existsSync } from 'fs'
|
||||||
|
import path from 'path'
|
||||||
|
import util from 'util'
|
||||||
|
import { Inputs } from '../inputs'
|
||||||
|
import { parse as parseYaml } from 'yaml'
|
||||||
|
import pnpmLock from './bootstrap/pnpm-lock.json'
|
||||||
|
import exeLock from './bootstrap/exe-lock.json'
|
||||||
|
|
||||||
|
const BOOTSTRAP_PNPM_PACKAGE_JSON = JSON.stringify({ private: true, dependencies: { pnpm: pnpmLock.packages['node_modules/pnpm'].version } })
|
||||||
|
const BOOTSTRAP_EXE_PACKAGE_JSON = JSON.stringify({ private: true, dependencies: { '@pnpm/exe': exeLock.packages['node_modules/@pnpm/exe'].version } })
|
||||||
|
|
||||||
|
export interface SelfInstallerResult {
|
||||||
|
exitCode: number
|
||||||
|
binDest: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function runSelfInstaller(inputs: Inputs): Promise<SelfInstallerResult> {
|
||||||
|
const { version, dest, packageJsonFile } = inputs
|
||||||
|
|
||||||
|
// pnpm v11 requires Node >= 22.13; use standalone (exe) bootstrap which
|
||||||
|
// bundles its own Node.js when the system Node is too old
|
||||||
|
const systemNode = await getSystemNodeVersion()
|
||||||
|
const standalone = inputs.standalone || systemNode.major < 22 || (systemNode.major === 22 && systemNode.minor < 13)
|
||||||
|
|
||||||
|
// Install bootstrap pnpm via npm (integrity verified by committed lockfile)
|
||||||
|
await rm(dest, { recursive: true, force: true })
|
||||||
|
await mkdir(dest, { recursive: true })
|
||||||
|
|
||||||
|
const lockfile = standalone ? exeLock : pnpmLock
|
||||||
|
const packageJson = standalone ? BOOTSTRAP_EXE_PACKAGE_JSON : BOOTSTRAP_PNPM_PACKAGE_JSON
|
||||||
|
await writeFile(path.join(dest, 'package.json'), packageJson)
|
||||||
|
await writeFile(path.join(dest, 'package-lock.json'), JSON.stringify(lockfile))
|
||||||
|
|
||||||
|
// Append the action's node directory to PATH so npm's
|
||||||
|
// `#!/usr/bin/env node` shebang resolves on runners (e.g. GHE
|
||||||
|
// self-hosted) where node isn't already on PATH. Append (not
|
||||||
|
// prepend) so a user-installed toolchain on PATH — e.g. from a
|
||||||
|
// prior `setup-node` step — keeps precedence; otherwise the
|
||||||
|
// runner-bundled node would shadow it and pair the user's npm
|
||||||
|
// with a mismatched node version. npm itself is resolved via
|
||||||
|
// PATH — on the GitHub Actions runner it is not co-located with
|
||||||
|
// `process.execPath`.
|
||||||
|
const nodeDir = path.dirname(process.execPath)
|
||||||
|
// On Windows, the PATH key casing varies; search case-insensitively.
|
||||||
|
const pathKey = Object.keys(process.env).find(k => k.toUpperCase() === 'PATH') ?? 'PATH'
|
||||||
|
const currentPath = process.env[pathKey]
|
||||||
|
const npmEnv = { ...process.env, [pathKey]: currentPath ? currentPath + path.delimiter + nodeDir : nodeDir }
|
||||||
|
const npmExitCode = await runCommand('npm', ['ci'], { cwd: dest, env: npmEnv })
|
||||||
|
if (npmExitCode !== 0) {
|
||||||
|
return { exitCode: npmExitCode, binDest: path.join(dest, 'node_modules', '.bin') }
|
||||||
|
}
|
||||||
|
|
||||||
|
// On Windows with standalone mode, npm's .bin shims can't properly
|
||||||
|
// execute the extensionless @pnpm/exe native binaries. Add the
|
||||||
|
// @pnpm/exe directory directly to PATH so pnpm.exe is found natively.
|
||||||
|
const pnpmHome = standalone && process.platform === 'win32'
|
||||||
|
? path.join(dest, 'node_modules', '@pnpm', 'exe')
|
||||||
|
: path.join(dest, 'node_modules', '.bin')
|
||||||
|
// PNPM_HOME/bin is where `pnpm self-update` places the target version
|
||||||
|
// binary. It must have higher PATH precedence than pnpmHome (which
|
||||||
|
// contains the bootstrap binary) so the self-updated version is found
|
||||||
|
// first. The bootstrap pnpm is invoked via absolute path, not PATH,
|
||||||
|
// so this ordering does not affect the bootstrap step.
|
||||||
|
addPath(pnpmHome)
|
||||||
|
addPath(path.join(pnpmHome, 'bin'))
|
||||||
|
exportVariable('PNPM_HOME', pnpmHome)
|
||||||
|
|
||||||
|
// Ensure pnpm bin link exists — npm ci sometimes doesn't create it
|
||||||
|
if (process.platform !== 'win32') {
|
||||||
|
const pnpmBinLink = path.join(dest, 'node_modules', '.bin', 'pnpm')
|
||||||
|
if (!existsSync(pnpmBinLink)) {
|
||||||
|
await mkdir(path.join(dest, 'node_modules', '.bin'), { recursive: true })
|
||||||
|
const target = standalone
|
||||||
|
? path.join('..', '@pnpm', 'exe', 'pnpm')
|
||||||
|
: path.join('..', 'pnpm', 'bin', 'pnpm.mjs')
|
||||||
|
await symlink(target, pnpmBinLink)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const bootstrapPnpm = standalone
|
||||||
|
? path.join(dest, 'node_modules', '@pnpm', 'exe', process.platform === 'win32' ? 'pnpm.exe' : 'pnpm')
|
||||||
|
: path.join(dest, 'node_modules', 'pnpm', 'bin', 'pnpm.mjs')
|
||||||
|
|
||||||
|
// Self-update the bootstrap to the requested pnpm version. readTargetVersion
|
||||||
|
// either returns a value or throws, so this always runs.
|
||||||
|
const targetVersion = readTargetVersion({ version, packageJsonFile })
|
||||||
|
const cmd = standalone ? bootstrapPnpm : process.execPath
|
||||||
|
const args = standalone ? ['self-update', targetVersion] : [bootstrapPnpm, 'self-update', targetVersion]
|
||||||
|
const exitCode = await runCommand(cmd, args, { cwd: dest })
|
||||||
|
if (exitCode !== 0) {
|
||||||
|
return { exitCode, binDest: pnpmHome }
|
||||||
|
}
|
||||||
|
// self-update writes the target pnpm/pnpx into PNPM_HOME/bin, leaving
|
||||||
|
// the bootstrap symlinks in pnpmHome pointing at the old version. Use
|
||||||
|
// PNPM_HOME/bin so consumers of the bin_dest output (e.g.
|
||||||
|
// `${steps.pnpm.outputs.bin_dest}/pnpm`) invoke the requested version.
|
||||||
|
//
|
||||||
|
// When the requested version resolves to the bootstrap version, self-update
|
||||||
|
// is a no-op and PNPM_HOME/bin is not created — fall back to pnpmHome,
|
||||||
|
// whose symlinks already point at the right version.
|
||||||
|
const updatedBinDir = path.join(pnpmHome, 'bin')
|
||||||
|
return { exitCode: 0, binDest: existsSync(updatedBinDir) ? updatedBinDir : pnpmHome }
|
||||||
|
}
|
||||||
|
|
||||||
|
function readTargetVersion(opts: {
|
||||||
|
readonly version?: string | undefined
|
||||||
|
readonly packageJsonFile: string
|
||||||
|
}): string {
|
||||||
|
const { version, packageJsonFile } = opts
|
||||||
|
const { GITHUB_WORKSPACE } = process.env
|
||||||
|
|
||||||
|
let packageManager: string | undefined
|
||||||
|
let devEngines: { packageManager?: { name?: string; version?: string } } | undefined
|
||||||
|
|
||||||
|
if (GITHUB_WORKSPACE) {
|
||||||
|
try {
|
||||||
|
const content = readFileSync(path.join(GITHUB_WORKSPACE, packageJsonFile), 'utf8');
|
||||||
|
const manifest = packageJsonFile.endsWith(".yaml")
|
||||||
|
? parseYaml(content, { merge: true })
|
||||||
|
: JSON.parse(content)
|
||||||
|
packageManager = manifest.packageManager
|
||||||
|
devEngines = manifest.devEngines
|
||||||
|
} 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// packageManager is always exact `pnpm@<version>[+<integrity>]` per spec.
|
||||||
|
// Strip the integrity hash for self-update.
|
||||||
|
const packageManagerVersion =
|
||||||
|
typeof packageManager === 'string' && packageManager.startsWith('pnpm@')
|
||||||
|
? packageManager.slice('pnpm@'.length).split('+')[0]
|
||||||
|
: undefined
|
||||||
|
|
||||||
|
if (version) {
|
||||||
|
if (packageManagerVersion && packageManagerVersion !== 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 version
|
||||||
|
}
|
||||||
|
|
||||||
|
// Self-update the bootstrap pnpm to the version pinned in package.json so
|
||||||
|
// PATH-resolved `pnpm` (and the bin_dest output) reflect the target
|
||||||
|
// version. Without this, `pnpm store path` runs as the bootstrap and
|
||||||
|
// reports a different STORE_VERSION than the one the user's actual
|
||||||
|
// install writes to — breaking cache: true and actions/setup-node's
|
||||||
|
// `cache: pnpm` on cold caches (issue #233).
|
||||||
|
//
|
||||||
|
// devEngines.packageManager takes priority over packageManager, matching
|
||||||
|
// pnpm's getWantedPackageManager logic. `pnpm self-update` accepts both
|
||||||
|
// exact versions and semver ranges, so we pass either through directly.
|
||||||
|
if (devEngines?.packageManager?.name === 'pnpm' && devEngines.packageManager.version) {
|
||||||
|
return devEngines.packageManager.version
|
||||||
|
}
|
||||||
|
|
||||||
|
if (packageManagerVersion) {
|
||||||
|
return packageManagerVersion
|
||||||
|
}
|
||||||
|
|
||||||
|
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.`)
|
||||||
|
}
|
||||||
|
|
||||||
|
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"
|
||||||
|
- in the package.json with the key "devEngines.packageManager"`)
|
||||||
|
}
|
||||||
|
|
||||||
|
function getSystemNodeVersion(): Promise<{ major: number; minor: number }> {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
const cp = spawn('node', ['--version'], { stdio: ['pipe', 'pipe', 'pipe'], shell: process.platform === 'win32' })
|
||||||
|
let output = ''
|
||||||
|
cp.stdout.on('data', (data: Buffer) => { output += data.toString() })
|
||||||
|
cp.on('close', () => {
|
||||||
|
const match = output.match(/^v(\d+)\.(\d+)/)
|
||||||
|
resolve(match ? { major: parseInt(match[1], 10), minor: parseInt(match[2], 10) } : { major: 0, minor: 0 })
|
||||||
|
})
|
||||||
|
cp.on('error', () => resolve({ major: 0, minor: 0 }))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function runCommand(cmd: string, args: string[], opts: { cwd: string; env?: Record<string, string | undefined> }): Promise<number> {
|
||||||
|
return new Promise<number>((resolve, reject) => {
|
||||||
|
const cp = spawn(cmd, args, {
|
||||||
|
cwd: opts.cwd,
|
||||||
|
env: opts.env,
|
||||||
|
stdio: ['pipe', 'inherit', 'inherit'],
|
||||||
|
shell: process.platform === 'win32',
|
||||||
|
})
|
||||||
|
cp.on('error', reject)
|
||||||
|
cp.on('close', resolve)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export default runSelfInstaller
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
import { setFailed } from '@actions/core'
|
|
||||||
import { Inputs } from '../inputs'
|
|
||||||
import runSelfInstaller from './run'
|
|
||||||
|
|
||||||
export { runSelfInstaller }
|
|
||||||
|
|
||||||
export async function install(inputs: Inputs) {
|
|
||||||
const status = await runSelfInstaller(inputs)
|
|
||||||
if (status) {
|
|
||||||
return setFailed(`Something does wrong, self-installer exits with code ${status}`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default install
|
|
||||||
@@ -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,11 @@
|
|||||||
import { setOutput, addPath } from '@actions/core'
|
import { setOutput } from '@actions/core'
|
||||||
import { Inputs } from '../inputs'
|
import { Inputs } from '../inputs'
|
||||||
|
|
||||||
export function setOutputs(inputs: Inputs) {
|
export function setOutputs(inputs: Inputs, binDest: string) {
|
||||||
addPath(inputs.binDest)
|
// NOTE: addPath is already called in installPnpm — do not call it again
|
||||||
|
// here, as a second addPath would shadow the correct entry on Windows.
|
||||||
setOutput('dest', inputs.dest)
|
setOutput('dest', inputs.dest)
|
||||||
setOutput('bin_dest', inputs.binDest)
|
setOutput('bin_dest', binDest)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default setOutputs
|
export default setOutputs
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
import { setFailed, startGroup, endGroup } from '@actions/core'
|
||||||
|
import { spawnSync } from 'child_process'
|
||||||
|
import { Inputs } from '../inputs'
|
||||||
|
|
||||||
|
export function runPnpmInstall(inputs: 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}...`)
|
||||||
|
|
||||||
|
// spawnSync inherits process.env, which already has $PNPM_HOME/bin and
|
||||||
|
// $PNPM_HOME prepended via addPath() in install-pnpm. Do NOT pass a
|
||||||
|
// hand-patched env that adds node_modules/.bin to the front — on
|
||||||
|
// Windows standalone, .bin/pnpm.cmd is an npm shim pointing at the
|
||||||
|
// BOOTSTRAP pnpm, which would shadow the self-updated one and break
|
||||||
|
// newer-pnpm-only behavior.
|
||||||
|
const { error, status } = spawnSync('pnpm', args, {
|
||||||
|
stdio: 'inherit',
|
||||||
|
cwd: options.cwd,
|
||||||
|
shell: true,
|
||||||
|
})
|
||||||
|
|
||||||
|
endGroup()
|
||||||
|
|
||||||
|
if (error) {
|
||||||
|
setFailed(error)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if (status) {
|
||||||
|
setFailed(`Command ${cmdStr} (cwd: ${options.cwd}) exits with status ${status}`)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default runPnpmInstall
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
import { warning, startGroup, endGroup } from '@actions/core'
|
||||||
|
import { spawnSync } from 'child_process'
|
||||||
|
import { Inputs } from '../inputs'
|
||||||
|
|
||||||
|
export function pruneStore(inputs: Inputs) {
|
||||||
|
if (inputs.runInstall.length === 0) {
|
||||||
|
console.log('Pruning is unnecessary.')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
startGroup('Running pnpm store prune...')
|
||||||
|
// spawnSync inherits process.env (which has the right PATH from addPath
|
||||||
|
// in install-pnpm). See pnpm-install/index.ts for the rationale.
|
||||||
|
const { error, status } = spawnSync('pnpm', ['store', 'prune'], {
|
||||||
|
stdio: 'inherit',
|
||||||
|
shell: true,
|
||||||
|
})
|
||||||
|
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
|
|
||||||
+6
-17
@@ -1,30 +1,19 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES2018",
|
"target": "ES2022",
|
||||||
"module": "CommonJS",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "bundler",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"lib": [
|
"lib": [
|
||||||
"ES2018",
|
"ES2023"
|
||||||
"ES2019",
|
|
||||||
"ES2020",
|
|
||||||
"ESNext"
|
|
||||||
],
|
],
|
||||||
"outDir": "./dist/tsc",
|
"noEmit": true,
|
||||||
"preserveConstEnums": true,
|
|
||||||
"incremental": false,
|
|
||||||
"declaration": true,
|
|
||||||
"sourceMap": true,
|
|
||||||
"importHelpers": false,
|
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"pretty": true,
|
"pretty": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true
|
||||||
"experimentalDecorators": true,
|
|
||||||
"emitDecoratorMetadata": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user