mirror of
https://github.com/pnpm/action-setup.git
synced 2026-07-04 03:15:40 +00:00
Compare commits
No commits in common. "3de0023fce9ce0bfa0d5958ce32d5e78e922d92f" and "1f69135d3d183b457fdb20cfdec87b40136f6e32" have entirely different histories.
3de0023fce
...
1f69135d3d
28
.github/workflows/pr-check.yaml
vendored
28
.github/workflows/pr-check.yaml
vendored
@ -1,28 +0,0 @@
|
|||||||
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
|
|
||||||
BIN
dist/index.js
vendored
BIN
dist/index.js
vendored
Binary file not shown.
@ -1,4 +0,0 @@
|
|||||||
packages:
|
|
||||||
- '.'
|
|
||||||
allowBuilds:
|
|
||||||
esbuild: true
|
|
||||||
@ -31,7 +31,6 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
|
|||||||
|
|
||||||
const pnpmHome = path.join(dest, 'node_modules', '.bin')
|
const pnpmHome = path.join(dest, 'node_modules', '.bin')
|
||||||
addPath(pnpmHome)
|
addPath(pnpmHome)
|
||||||
addPath(path.join(pnpmHome, 'bin'))
|
|
||||||
exportVariable('PNPM_HOME', pnpmHome)
|
exportVariable('PNPM_HOME', pnpmHome)
|
||||||
|
|
||||||
// Ensure pnpm bin link exists — npm ci sometimes doesn't create it
|
// Ensure pnpm bin link exists — npm ci sometimes doesn't create it
|
||||||
|
|||||||
@ -6,5 +6,5 @@ export const getBinDest = (inputs: Inputs): string => path.join(inputs.dest, 'no
|
|||||||
|
|
||||||
export const patchPnpmEnv = (inputs: Inputs): NodeJS.ProcessEnv => ({
|
export const patchPnpmEnv = (inputs: Inputs): NodeJS.ProcessEnv => ({
|
||||||
...process.env,
|
...process.env,
|
||||||
PATH: path.join(getBinDest(inputs), 'bin') + path.delimiter + getBinDest(inputs) + path.delimiter + process.env.PATH,
|
PATH: getBinDest(inputs) + path.delimiter + process.env.PATH,
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user