mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-09-03 06:09:23 +00:00
CI already disables npm lifecycle scripts, but ordinary installs from the repository still run them. Set `ignore-scripts = true` in `.npmrc` so developer and maintenance installs use the same default. Keep the existing seven-day `min-release-age` policy for new resolutions. Require `npm>=11.10.0` through `engines.npm` and `engine-strict`, while retaining `devEngines` for newer clients; older installers can otherwise ignore `devEngines` and the age setting. Pin the build and checksum workflows to Node.js `24.19.0` so their bundled `npm` supports the policy. Explicit project commands such as `npm run package` remain available. Related: astral-sh/ruff-action#401 applies the matching `npm` defaults, and astral-sh/ruff-action#411 adds the same legacy-aware version floor. astral-sh/ruff#27837 applies the install-script default to Ruff's JavaScript projects. astral-sh/setup-uv#1027 separately adds registry-signature and provenance verification. --------- Co-authored-by: zaniebot <242828183+zaniebot@users.noreply.github.com>
64 lines
1.8 KiB
JSON
64 lines
1.8 KiB
JSON
{
|
|
"name": "setup-uv",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Set up your GitHub Actions workflow with a specific version of uv",
|
|
"main": "dist/setup/index.cjs",
|
|
"engines": {
|
|
"npm": ">=11.10.0"
|
|
},
|
|
"devEngines": {
|
|
"packageManager": {
|
|
"name": "npm",
|
|
"version": ">=11.10.0",
|
|
"onFail": "error"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc --noEmit",
|
|
"check": "biome check --write",
|
|
"package": "node scripts/build-dist.mjs",
|
|
"test:unit": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
|
|
"test": "npm run build && npm run test:unit",
|
|
"act": "act pull_request -W .github/workflows/test.yml --container-architecture linux/amd64 -s GITHUB_TOKEN=\"$(gh auth token)\"",
|
|
"update-known-checksums": "RUNNER_TEMP=known_versions node dist/update-known-checksums/index.cjs src/download/checksum/known-checksums.json",
|
|
"all": "npm run build && npm run check && npm run package && npm run test:unit"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/astral-sh/setup-uv.git"
|
|
},
|
|
"keywords": [
|
|
"actions",
|
|
"python",
|
|
"setup",
|
|
"uv"
|
|
],
|
|
"author": "@eifinger",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@actions/cache": "^6.2.0",
|
|
"@actions/core": "^3.0.0",
|
|
"@actions/exec": "^3.0.0",
|
|
"@actions/glob": "^0.7.0",
|
|
"@actions/io": "^3.0.2",
|
|
"@actions/tool-cache": "^4.0.0",
|
|
"@renovatebot/pep440": "^5.0.0",
|
|
"smol-toml": "^1.7.1",
|
|
"undici": "^8.10.0"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.5.7",
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/node": "^26.1.2",
|
|
"@types/semver": "^7.8.0",
|
|
"@vercel/ncc": "^0.44.1",
|
|
"esbuild": "^0.28.1",
|
|
"jest": "^30.4.2",
|
|
"js-yaml": "^5.2.3",
|
|
"ts-jest": "^29.4.11",
|
|
"typescript": "^6.0.3"
|
|
}
|
|
}
|