mirror of
https://github.com/actions/cache.git
synced 2026-04-24 08:04:41 +00:00
Port GCS support from danySam/gcs-cache. When gcs-bucket input is set, cache to Google Cloud Storage via Application Default Credentials; else fall back to GitHub's cache service transparently. - New inputs: gcs-bucket, gcs-path-prefix (default: github-cache) - New src/utils/gcsCache.ts wraps @actions/cache restore/save - restoreImpl/saveImpl swap @actions/cache import for local wrapper - Adds @google-cloud/storage ^7.16.0, bumps typescript to ^5.8.3 - Regenerated dist/ via npm run build Skipped: upstream workflow removals, README/examples/RELEASES churn, licensed/codeql config, GCS integration-test workflow.
53 lines
1.5 KiB
JSON
53 lines
1.5 KiB
JSON
{
|
|
"name": "cache",
|
|
"version": "4.2.3",
|
|
"private": true,
|
|
"description": "Cache dependencies and build outputs",
|
|
"main": "dist/restore/index.js",
|
|
"scripts": {
|
|
"build": "tsc && ncc build -o dist/restore src/restore.ts && ncc build -o dist/save src/save.ts && ncc build -o dist/restore-only src/restoreOnly.ts && ncc build -o dist/save-only src/saveOnly.ts",
|
|
"test": "tsc --noEmit && jest --coverage",
|
|
"lint": "eslint **/*.ts --cache",
|
|
"format": "prettier --write **/*.ts",
|
|
"format-check": "prettier --check **/*.ts"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/actions/cache.git"
|
|
},
|
|
"keywords": [
|
|
"actions",
|
|
"node",
|
|
"cache"
|
|
],
|
|
"author": "GitHub",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@actions/cache": "^4.0.3",
|
|
"@actions/core": "^1.11.1",
|
|
"@actions/exec": "^1.1.1",
|
|
"@actions/io": "^1.1.3",
|
|
"@google-cloud/storage": "^7.16.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^27.5.2",
|
|
"@types/nock": "^11.1.0",
|
|
"@types/node": "^16.18.3",
|
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
"@typescript-eslint/parser": "^5.45.0",
|
|
"@vercel/ncc": "^0.38.3",
|
|
"eslint": "^8.28.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-jest": "^26.9.0",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
"jest": "^28.1.3",
|
|
"jest-circus": "^27.5.1",
|
|
"nock": "^13.2.9",
|
|
"prettier": "^2.8.0",
|
|
"ts-jest": "^28.0.8",
|
|
"typescript": "^5.8.3"
|
|
}
|
|
}
|