mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 20:08:36 +08:00 
			
		
		
		
	 6ec565b197
			
		
	
	
		6ec565b197
		
	
	
	
	
		
			
			Basically, do exactly what GH did to save and restore cache with the exception being that the files are stored on GCS.
		
			
				
	
	
		
			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"
 | |
|   }
 | |
| }
 |