Add @actions/cache to dependencies

This commit is contained in:
Misha Kaletsky 2021-07-12 14:02:21 -04:00 committed by Misha Kaletsky
parent 5fa6e37385
commit b092345930
6 changed files with 54897 additions and 9346 deletions

View file

@ -18,6 +18,7 @@ arguments will be provided:
- `core` A reference to the [@actions/core](https://github.com/actions/toolkit/tree/main/packages/core) package - `core` A reference to the [@actions/core](https://github.com/actions/toolkit/tree/main/packages/core) package
- `glob` A reference to the [@actions/glob](https://github.com/actions/toolkit/tree/main/packages/glob) package - `glob` A reference to the [@actions/glob](https://github.com/actions/toolkit/tree/main/packages/glob) package
- `io` A reference to the [@actions/io](https://github.com/actions/toolkit/tree/main/packages/io) package - `io` A reference to the [@actions/io](https://github.com/actions/toolkit/tree/main/packages/io) package
- `cache` A reference to the [@actions/cacbe](https://github.com/actions/toolkit/tree/main/packages/cache) package
- `require` A proxy wrapper around the normal Node.js `require` to enable - `require` A proxy wrapper around the normal Node.js `require` to enable
requiring relative paths (relative to the current working directory) and requiring relative paths (relative to the current working directory) and
requiring npm packages installed in the current working directory. If for requiring npm packages installed in the current working directory. If for

54782
dist/index.js vendored

File diff suppressed because one or more lines are too long

9453
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -35,6 +35,7 @@
} }
}, },
"dependencies": { "dependencies": {
"@actions/cache": "^1.0.7",
"@actions/core": "^1.2.7", "@actions/core": "^1.2.7",
"@actions/github": "^4.0.0", "@actions/github": "^4.0.0",
"@actions/glob": "^0.1.1", "@actions/glob": "^0.1.1",

View file

@ -1,3 +1,4 @@
import * as cache from '@actions/cache'
import * as core from '@actions/core' import * as core from '@actions/core'
import {Context} from '@actions/github/lib/context' import {Context} from '@actions/github/lib/context'
import {GitHub} from '@actions/github/lib/utils' import {GitHub} from '@actions/github/lib/utils'
@ -12,6 +13,7 @@ type AsyncFunctionArguments = {
github: InstanceType<typeof GitHub> github: InstanceType<typeof GitHub>
glob: typeof glob glob: typeof glob
io: typeof io io: typeof io
cache: typeof cache
require: NodeRequire require: NodeRequire
__original_require__: NodeRequire __original_require__: NodeRequire
} }

View file

@ -1,3 +1,4 @@
import * as cache from '@actions/cache'
import * as core from '@actions/core' import * as core from '@actions/core'
import {context, getOctokit} from '@actions/github' import {context, getOctokit} from '@actions/github'
import * as glob from '@actions/glob' import * as glob from '@actions/glob'
@ -37,7 +38,8 @@ async function main(): Promise<void> {
context, context,
core, core,
glob, glob,
io io,
cache
}, },
script script
) )