mirror of
https://github.com/actions/github-script.git
synced 2026-02-08 03:57:27 +00:00
Add @actions/cache to dependencies
This commit is contained in:
parent
5fa6e37385
commit
b092345930
6 changed files with 54897 additions and 9346 deletions
|
|
@ -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
|
||||
- `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
|
||||
- `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
|
||||
requiring relative paths (relative to the current working directory) and
|
||||
requiring npm packages installed in the current working directory. If for
|
||||
|
|
|
|||
54782
dist/index.js
vendored
54782
dist/index.js
vendored
File diff suppressed because one or more lines are too long
9453
package-lock.json
generated
9453
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -35,6 +35,7 @@
|
|||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/cache": "^1.0.7",
|
||||
"@actions/core": "^1.2.7",
|
||||
"@actions/github": "^4.0.0",
|
||||
"@actions/glob": "^0.1.1",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import * as cache from '@actions/cache'
|
||||
import * as core from '@actions/core'
|
||||
import {Context} from '@actions/github/lib/context'
|
||||
import {GitHub} from '@actions/github/lib/utils'
|
||||
|
|
@ -12,6 +13,7 @@ type AsyncFunctionArguments = {
|
|||
github: InstanceType<typeof GitHub>
|
||||
glob: typeof glob
|
||||
io: typeof io
|
||||
cache: typeof cache
|
||||
require: NodeRequire
|
||||
__original_require__: NodeRequire
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import * as cache from '@actions/cache'
|
||||
import * as core from '@actions/core'
|
||||
import {context, getOctokit} from '@actions/github'
|
||||
import * as glob from '@actions/glob'
|
||||
|
|
@ -37,7 +38,8 @@ async function main(): Promise<void> {
|
|||
context,
|
||||
core,
|
||||
glob,
|
||||
io
|
||||
io,
|
||||
cache
|
||||
},
|
||||
script
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue