Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2021-05-14 23:25:37 +02:00 committed by GitHub
parent 47836d5fef
commit f64acbafda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 1543 additions and 386 deletions

View File

@ -1,2 +1,12 @@
/coverage /coverage
/node_modules
# Dependency directories
node_modules/
jspm_packages/
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

2
.gitattributes vendored
View File

@ -1,2 +1,4 @@
/.yarn/releases/** binary
/.yarn/plugins/** binary
/dist/** linguist-generated=true /dist/** linguist-generated=true
/lib/** linguist-generated=true /lib/** linguist-generated=true

40
.gitignore vendored
View File

@ -1,6 +1,5 @@
/.dev /.dev
node_modules/ /lib
lib
# Jetbrains # Jetbrains
/.idea /.idea
@ -47,10 +46,11 @@ bower_components
build/Release build/Release
# Dependency directories # Dependency directories
node_modules/
jspm_packages/ jspm_packages/
# TypeScript v1 declaration files # Snowpack dependency directory (https://snowpack.dev/)
typings/ web_modules/
# TypeScript cache # TypeScript cache
*.tsbuildinfo *.tsbuildinfo
@ -61,6 +61,12 @@ typings/
# Optional eslint cache # Optional eslint cache
.eslintcache .eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history # Optional REPL history
.node_repl_history .node_repl_history
@ -76,12 +82,21 @@ typings/
# parcel-bundler cache (https://parceljs.org/) # parcel-bundler cache (https://parceljs.org/)
.cache .cache
.parcel-cache
# next.js build output # Next.js build output
.next .next
out
# nuxt.js build output # Nuxt.js build / generate output
.nuxt .nuxt
#dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output # vuepress build output
.vuepress/dist .vuepress/dist
@ -94,3 +109,16 @@ typings/
# DynamoDB Local files # DynamoDB Local files
.dynamodb/ .dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

6
.prettierignore Normal file
View File

@ -0,0 +1,6 @@
# Dependency directories
node_modules/
jspm_packages/
# yarn v2
.yarn/

Binary file not shown.

BIN
.yarn/releases/yarn-2.4.1.cjs vendored Normal file

Binary file not shown.

7
.yarnrc.yml Normal file
View File

@ -0,0 +1,7 @@
nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
yarnPath: .yarn/releases/yarn-2.4.1.cjs

436
dist/index.js generated vendored
View File

@ -1,9 +1,8 @@
module.exports = require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({ /******/ var __webpack_modules__ = ({
/***/ 7757: /***/ 7757:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -37,7 +36,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.exec = void 0; exports.exec = void 0;
const actionsExec = __importStar(__webpack_require__(1514)); const actionsExec = __importStar(__nccwpck_require__(1514));
const exec = (command, args = [], silent) => __awaiter(void 0, void 0, void 0, function* () { const exec = (command, args = [], silent) => __awaiter(void 0, void 0, void 0, function* () {
let stdout = ''; let stdout = '';
let stderr = ''; let stderr = '';
@ -66,7 +65,7 @@ exports.exec = exec;
/***/ }), /***/ }),
/***/ 3374: /***/ 3374:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -100,8 +99,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.push = exports.showStat = exports.commit = exports.add = exports.setConfig = exports.hasChanges = exports.isDirty = exports.checkout = exports.init = exports.clone = exports.remoteBranchExists = exports.defaults = void 0; exports.push = exports.showStat = exports.commit = exports.add = exports.setConfig = exports.hasChanges = exports.isDirty = exports.checkout = exports.init = exports.clone = exports.remoteBranchExists = exports.defaults = void 0;
const mexec = __importStar(__webpack_require__(7757)); const mexec = __importStar(__nccwpck_require__(7757));
const exec = __importStar(__webpack_require__(1514)); const exec = __importStar(__nccwpck_require__(1514));
exports.defaults = { exports.defaults = {
targetBranch: 'gh-pages', targetBranch: 'gh-pages',
committer: 'GitHub <noreply@github.com>', committer: 'GitHub <noreply@github.com>',
@ -214,7 +213,7 @@ exports.push = push;
/***/ }), /***/ }),
/***/ 3109: /***/ 3109:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -250,13 +249,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod }; return (mod && mod.__esModule) ? mod : { "default": mod };
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
const addressparser_1 = __importDefault(__webpack_require__(2764)); const addressparser_1 = __importDefault(__nccwpck_require__(2764));
const fs_extra_1 = __webpack_require__(5630); const fs_extra_1 = __nccwpck_require__(5630);
const fs = __importStar(__webpack_require__(5747)); const fs = __importStar(__nccwpck_require__(5747));
const os = __importStar(__webpack_require__(2087)); const os = __importStar(__nccwpck_require__(2087));
const path = __importStar(__webpack_require__(5622)); const path = __importStar(__nccwpck_require__(5622));
const core = __importStar(__webpack_require__(2186)); const core = __importStar(__nccwpck_require__(2186));
const git = __importStar(__webpack_require__(3374)); const git = __importStar(__nccwpck_require__(3374));
function run() { function run() {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
try { try {
@ -377,7 +376,7 @@ run();
/***/ }), /***/ }),
/***/ 7351: /***/ 7351:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -389,8 +388,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
const os = __importStar(__webpack_require__(2087)); const os = __importStar(__nccwpck_require__(2087));
const utils_1 = __webpack_require__(5278); const utils_1 = __nccwpck_require__(5278);
/** /**
* Commands * Commands
* *
@ -463,7 +462,7 @@ function escapeProperty(s) {
/***/ }), /***/ }),
/***/ 2186: /***/ 2186:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -484,11 +483,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
const command_1 = __webpack_require__(7351); const command_1 = __nccwpck_require__(7351);
const file_command_1 = __webpack_require__(717); const file_command_1 = __nccwpck_require__(717);
const utils_1 = __webpack_require__(5278); const utils_1 = __nccwpck_require__(5278);
const os = __importStar(__webpack_require__(2087)); const os = __importStar(__nccwpck_require__(2087));
const path = __importStar(__webpack_require__(5622)); const path = __importStar(__nccwpck_require__(5622));
/** /**
* The code to exit an action * The code to exit an action
*/ */
@ -709,7 +708,7 @@ exports.getState = getState;
/***/ }), /***/ }),
/***/ 717: /***/ 717:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -724,9 +723,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
// We use any as a valid input type // We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
const fs = __importStar(__webpack_require__(5747)); const fs = __importStar(__nccwpck_require__(5747));
const os = __importStar(__webpack_require__(2087)); const os = __importStar(__nccwpck_require__(2087));
const utils_1 = __webpack_require__(5278); const utils_1 = __nccwpck_require__(5278);
function issueCommand(command, message) { function issueCommand(command, message) {
const filePath = process.env[`GITHUB_${command}`]; const filePath = process.env[`GITHUB_${command}`];
if (!filePath) { if (!filePath) {
@ -771,7 +770,7 @@ exports.toCommandValue = toCommandValue;
/***/ }), /***/ }),
/***/ 1514: /***/ 1514:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -792,7 +791,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
const tr = __importStar(__webpack_require__(8159)); const tr = __importStar(__nccwpck_require__(8159));
/** /**
* Exec a command. * Exec a command.
* Output will be streamed to the live console. * Output will be streamed to the live console.
@ -822,7 +821,7 @@ exports.exec = exec;
/***/ }), /***/ }),
/***/ 8159: /***/ 8159:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -843,12 +842,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
const os = __importStar(__webpack_require__(2087)); const os = __importStar(__nccwpck_require__(2087));
const events = __importStar(__webpack_require__(8614)); const events = __importStar(__nccwpck_require__(8614));
const child = __importStar(__webpack_require__(3129)); const child = __importStar(__nccwpck_require__(3129));
const path = __importStar(__webpack_require__(5622)); const path = __importStar(__nccwpck_require__(5622));
const io = __importStar(__webpack_require__(7436)); const io = __importStar(__nccwpck_require__(9326));
const ioUtil = __importStar(__webpack_require__(1962)); const ioUtil = __importStar(__nccwpck_require__(277));
/* eslint-disable @typescript-eslint/unbound-method */ /* eslint-disable @typescript-eslint/unbound-method */
const IS_WINDOWS = process.platform === 'win32'; const IS_WINDOWS = process.platform === 'win32';
/* /*
@ -1428,8 +1427,8 @@ class ExecState extends events.EventEmitter {
/***/ }), /***/ }),
/***/ 1962: /***/ 277:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -1444,9 +1443,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
}; };
var _a; var _a;
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
const assert_1 = __webpack_require__(2357); const assert_1 = __nccwpck_require__(2357);
const fs = __webpack_require__(5747); const fs = __nccwpck_require__(5747);
const path = __webpack_require__(5622); const path = __nccwpck_require__(5622);
_a = fs.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; _a = fs.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
exports.IS_WINDOWS = process.platform === 'win32'; exports.IS_WINDOWS = process.platform === 'win32';
function exists(fsPath) { function exists(fsPath) {
@ -1630,8 +1629,8 @@ function isUnixExecutable(stats) {
/***/ }), /***/ }),
/***/ 7436: /***/ 9326:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -1645,10 +1644,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
}); });
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
const childProcess = __webpack_require__(3129); const childProcess = __nccwpck_require__(3129);
const path = __webpack_require__(5622); const path = __nccwpck_require__(5622);
const util_1 = __webpack_require__(1669); const util_1 = __nccwpck_require__(1669);
const ioUtil = __webpack_require__(1962); const ioUtil = __nccwpck_require__(277);
const exec = util_1.promisify(childProcess.exec); const exec = util_1.promisify(childProcess.exec);
/** /**
* Copies a file or folder. * Copies a file or folder.
@ -2227,16 +2226,16 @@ Tokenizer.prototype.checkChar = function (chr) {
/***/ }), /***/ }),
/***/ 3338: /***/ 3338:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
const mkdirsSync = __webpack_require__(8605).mkdirsSync const mkdirsSync = __nccwpck_require__(8605).mkdirsSync
const utimesMillisSync = __webpack_require__(2548).utimesMillisSync const utimesMillisSync = __nccwpck_require__(2548).utimesMillisSync
const stat = __webpack_require__(3901) const stat = __nccwpck_require__(3901)
function copySync (src, dest, opts) { function copySync (src, dest, opts) {
if (typeof opts === 'function') { if (typeof opts === 'function') {
@ -2401,30 +2400,30 @@ module.exports = copySync
/***/ }), /***/ }),
/***/ 1135: /***/ 1135:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
module.exports = { module.exports = {
copySync: __webpack_require__(3338) copySync: __nccwpck_require__(3338)
} }
/***/ }), /***/ }),
/***/ 8834: /***/ 8834:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
const mkdirs = __webpack_require__(8605).mkdirs const mkdirs = __nccwpck_require__(8605).mkdirs
const pathExists = __webpack_require__(3835).pathExists const pathExists = __nccwpck_require__(3835).pathExists
const utimesMillis = __webpack_require__(2548).utimesMillis const utimesMillis = __nccwpck_require__(2548).utimesMillis
const stat = __webpack_require__(3901) const stat = __nccwpck_require__(3901)
function copy (src, dest, opts, cb) { function copy (src, dest, opts, cb) {
if (typeof opts === 'function' && !cb) { if (typeof opts === 'function' && !cb) {
@ -2654,30 +2653,30 @@ module.exports = copy
/***/ }), /***/ }),
/***/ 1335: /***/ 1335:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const u = __webpack_require__(9046).fromCallback const u = __nccwpck_require__(9046).fromCallback
module.exports = { module.exports = {
copy: u(__webpack_require__(8834)) copy: u(__nccwpck_require__(8834))
} }
/***/ }), /***/ }),
/***/ 6970: /***/ 6970:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const u = __webpack_require__(9046).fromPromise const u = __nccwpck_require__(9046).fromPromise
const fs = __webpack_require__(1176) const fs = __nccwpck_require__(1176)
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
const mkdir = __webpack_require__(8605) const mkdir = __nccwpck_require__(8605)
const remove = __webpack_require__(7357) const remove = __nccwpck_require__(7357)
const emptyDir = u(async function emptyDir (dir) { const emptyDir = u(async function emptyDir (dir) {
let items let items
@ -2715,15 +2714,15 @@ module.exports = {
/***/ }), /***/ }),
/***/ 2164: /***/ 2164:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const u = __webpack_require__(9046).fromCallback const u = __nccwpck_require__(9046).fromCallback
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
const mkdir = __webpack_require__(8605) const mkdir = __nccwpck_require__(8605)
function createFile (file, callback) { function createFile (file, callback) {
function makeFile () { function makeFile () {
@ -2792,14 +2791,14 @@ module.exports = {
/***/ }), /***/ }),
/***/ 55: /***/ 55:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const file = __webpack_require__(2164) const file = __nccwpck_require__(2164)
const link = __webpack_require__(3797) const link = __nccwpck_require__(3797)
const symlink = __webpack_require__(2549) const symlink = __nccwpck_require__(2549)
module.exports = { module.exports = {
// file // file
@ -2823,17 +2822,17 @@ module.exports = {
/***/ }), /***/ }),
/***/ 3797: /***/ 3797:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const u = __webpack_require__(9046).fromCallback const u = __nccwpck_require__(9046).fromCallback
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
const mkdir = __webpack_require__(8605) const mkdir = __nccwpck_require__(8605)
const pathExists = __webpack_require__(3835).pathExists const pathExists = __nccwpck_require__(3835).pathExists
const { areIdentical } = __webpack_require__(3901) const { areIdentical } = __nccwpck_require__(3901)
function createLink (srcpath, dstpath, callback) { function createLink (srcpath, dstpath, callback) {
function makeLink (srcpath, dstpath) { function makeLink (srcpath, dstpath) {
@ -2895,14 +2894,14 @@ module.exports = {
/***/ }), /***/ }),
/***/ 3727: /***/ 3727:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
const pathExists = __webpack_require__(3835).pathExists const pathExists = __nccwpck_require__(3835).pathExists
/** /**
* Function that returns two types of paths, one relative to symlink, and one * Function that returns two types of paths, one relative to symlink, and one
@ -3002,12 +3001,12 @@ module.exports = {
/***/ }), /***/ }),
/***/ 8254: /***/ 8254:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
function symlinkType (srcpath, type, callback) { function symlinkType (srcpath, type, callback) {
callback = (typeof type === 'function') ? type : callback callback = (typeof type === 'function') ? type : callback
@ -3041,29 +3040,29 @@ module.exports = {
/***/ }), /***/ }),
/***/ 2549: /***/ 2549:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const u = __webpack_require__(9046).fromCallback const u = __nccwpck_require__(9046).fromCallback
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
const fs = __webpack_require__(1176) const fs = __nccwpck_require__(1176)
const _mkdirs = __webpack_require__(8605) const _mkdirs = __nccwpck_require__(8605)
const mkdirs = _mkdirs.mkdirs const mkdirs = _mkdirs.mkdirs
const mkdirsSync = _mkdirs.mkdirsSync const mkdirsSync = _mkdirs.mkdirsSync
const _symlinkPaths = __webpack_require__(3727) const _symlinkPaths = __nccwpck_require__(3727)
const symlinkPaths = _symlinkPaths.symlinkPaths const symlinkPaths = _symlinkPaths.symlinkPaths
const symlinkPathsSync = _symlinkPaths.symlinkPathsSync const symlinkPathsSync = _symlinkPaths.symlinkPathsSync
const _symlinkType = __webpack_require__(8254) const _symlinkType = __nccwpck_require__(8254)
const symlinkType = _symlinkType.symlinkType const symlinkType = _symlinkType.symlinkType
const symlinkTypeSync = _symlinkType.symlinkTypeSync const symlinkTypeSync = _symlinkType.symlinkTypeSync
const pathExists = __webpack_require__(3835).pathExists const pathExists = __nccwpck_require__(3835).pathExists
const { areIdentical } = __webpack_require__(3901) const { areIdentical } = __nccwpck_require__(3901)
function createSymlink (srcpath, dstpath, type, callback) { function createSymlink (srcpath, dstpath, type, callback) {
callback = (typeof type === 'function') ? type : callback callback = (typeof type === 'function') ? type : callback
@ -3131,14 +3130,14 @@ module.exports = {
/***/ }), /***/ }),
/***/ 1176: /***/ 1176:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict"; "use strict";
// This is adapted from https://github.com/normalize/mz // This is adapted from https://github.com/normalize/mz
// Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors // Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors
const u = __webpack_require__(9046).fromCallback const u = __nccwpck_require__(9046).fromCallback
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
const api = [ const api = [
'access', 'access',
@ -3258,42 +3257,42 @@ if (typeof fs.writev === 'function') {
/***/ }), /***/ }),
/***/ 5630: /***/ 5630:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
module.exports = { module.exports = {
// Export promiseified graceful-fs: // Export promiseified graceful-fs:
...__webpack_require__(1176), ...__nccwpck_require__(1176),
// Export extra methods: // Export extra methods:
...__webpack_require__(1135), ...__nccwpck_require__(1135),
...__webpack_require__(1335), ...__nccwpck_require__(1335),
...__webpack_require__(6970), ...__nccwpck_require__(6970),
...__webpack_require__(55), ...__nccwpck_require__(55),
...__webpack_require__(213), ...__nccwpck_require__(213),
...__webpack_require__(8605), ...__nccwpck_require__(8605),
...__webpack_require__(9665), ...__nccwpck_require__(9665),
...__webpack_require__(1497), ...__nccwpck_require__(1497),
...__webpack_require__(6570), ...__nccwpck_require__(6570),
...__webpack_require__(3835), ...__nccwpck_require__(3835),
...__webpack_require__(7357) ...__nccwpck_require__(7357)
} }
/***/ }), /***/ }),
/***/ 213: /***/ 213:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const u = __webpack_require__(9046).fromPromise const u = __nccwpck_require__(9046).fromPromise
const jsonFile = __webpack_require__(8970) const jsonFile = __nccwpck_require__(8970)
jsonFile.outputJson = u(__webpack_require__(531)) jsonFile.outputJson = u(__nccwpck_require__(531))
jsonFile.outputJsonSync = __webpack_require__(9421) jsonFile.outputJsonSync = __nccwpck_require__(9421)
// aliases // aliases
jsonFile.outputJSON = jsonFile.outputJson jsonFile.outputJSON = jsonFile.outputJson
jsonFile.outputJSONSync = jsonFile.outputJsonSync jsonFile.outputJSONSync = jsonFile.outputJsonSync
@ -3308,12 +3307,12 @@ module.exports = jsonFile
/***/ }), /***/ }),
/***/ 8970: /***/ 8970:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const jsonFile = __webpack_require__(6160) const jsonFile = __nccwpck_require__(6160)
module.exports = { module.exports = {
// jsonfile exports // jsonfile exports
@ -3327,13 +3326,13 @@ module.exports = {
/***/ }), /***/ }),
/***/ 9421: /***/ 9421:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const { stringify } = __webpack_require__(5902) const { stringify } = __nccwpck_require__(5902)
const { outputFileSync } = __webpack_require__(6570) const { outputFileSync } = __nccwpck_require__(6570)
function outputJsonSync (file, data, options) { function outputJsonSync (file, data, options) {
const str = stringify(data, options) const str = stringify(data, options)
@ -3347,13 +3346,13 @@ module.exports = outputJsonSync
/***/ }), /***/ }),
/***/ 531: /***/ 531:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const { stringify } = __webpack_require__(5902) const { stringify } = __nccwpck_require__(5902)
const { outputFile } = __webpack_require__(6570) const { outputFile } = __nccwpck_require__(6570)
async function outputJson (file, data, options = {}) { async function outputJson (file, data, options = {}) {
const str = stringify(data, options) const str = stringify(data, options)
@ -3367,12 +3366,12 @@ module.exports = outputJson
/***/ }), /***/ }),
/***/ 8605: /***/ 8605:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const u = __webpack_require__(9046).fromPromise const u = __nccwpck_require__(9046).fromPromise
const { makeDir: _makeDir, makeDirSync } = __webpack_require__(2751) const { makeDir: _makeDir, makeDirSync } = __nccwpck_require__(2751)
const makeDir = u(_makeDir) const makeDir = u(_makeDir)
module.exports = { module.exports = {
@ -3389,12 +3388,12 @@ module.exports = {
/***/ }), /***/ }),
/***/ 2751: /***/ 2751:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const fs = __webpack_require__(1176) const fs = __nccwpck_require__(1176)
const { checkPath } = __webpack_require__(9907) const { checkPath } = __nccwpck_require__(9907)
const getMode = options => { const getMode = options => {
const defaults = { mode: 0o777 } const defaults = { mode: 0o777 }
@ -3424,7 +3423,7 @@ module.exports.makeDirSync = (dir, options) => {
/***/ }), /***/ }),
/***/ 9907: /***/ 9907:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
// Adapted from https://github.com/sindresorhus/make-dir // Adapted from https://github.com/sindresorhus/make-dir
@ -3433,7 +3432,7 @@ module.exports.makeDirSync = (dir, options) => {
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
// https://github.com/nodejs/node/issues/8987 // https://github.com/nodejs/node/issues/8987
// https://github.com/libuv/libuv/pull/1088 // https://github.com/libuv/libuv/pull/1088
@ -3453,30 +3452,30 @@ module.exports.checkPath = function checkPath (pth) {
/***/ }), /***/ }),
/***/ 9665: /***/ 9665:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
module.exports = { module.exports = {
moveSync: __webpack_require__(6445) moveSync: __nccwpck_require__(6445)
} }
/***/ }), /***/ }),
/***/ 6445: /***/ 6445:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
const copySync = __webpack_require__(1135).copySync const copySync = __nccwpck_require__(1135).copySync
const removeSync = __webpack_require__(7357).removeSync const removeSync = __nccwpck_require__(7357).removeSync
const mkdirpSync = __webpack_require__(8605).mkdirpSync const mkdirpSync = __nccwpck_require__(8605).mkdirpSync
const stat = __webpack_require__(3901) const stat = __nccwpck_require__(3901)
function moveSync (src, dest, opts) { function moveSync (src, dest, opts) {
opts = opts || {} opts = opts || {}
@ -3528,32 +3527,32 @@ module.exports = moveSync
/***/ }), /***/ }),
/***/ 1497: /***/ 1497:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const u = __webpack_require__(9046).fromCallback const u = __nccwpck_require__(9046).fromCallback
module.exports = { module.exports = {
move: u(__webpack_require__(2231)) move: u(__nccwpck_require__(2231))
} }
/***/ }), /***/ }),
/***/ 2231: /***/ 2231:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
const copy = __webpack_require__(1335).copy const copy = __nccwpck_require__(1335).copy
const remove = __webpack_require__(7357).remove const remove = __nccwpck_require__(7357).remove
const mkdirp = __webpack_require__(8605).mkdirp const mkdirp = __nccwpck_require__(8605).mkdirp
const pathExists = __webpack_require__(3835).pathExists const pathExists = __nccwpck_require__(3835).pathExists
const stat = __webpack_require__(3901) const stat = __nccwpck_require__(3901)
function move (src, dest, opts, cb) { function move (src, dest, opts, cb) {
if (typeof opts === 'function') { if (typeof opts === 'function') {
@ -3623,16 +3622,16 @@ module.exports = move
/***/ }), /***/ }),
/***/ 6570: /***/ 6570:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const u = __webpack_require__(9046).fromCallback const u = __nccwpck_require__(9046).fromCallback
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
const mkdir = __webpack_require__(8605) const mkdir = __nccwpck_require__(8605)
const pathExists = __webpack_require__(3835).pathExists const pathExists = __nccwpck_require__(3835).pathExists
function outputFile (file, data, encoding, callback) { function outputFile (file, data, encoding, callback) {
if (typeof encoding === 'function') { if (typeof encoding === 'function') {
@ -3671,12 +3670,12 @@ module.exports = {
/***/ }), /***/ }),
/***/ 3835: /***/ 3835:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const u = __webpack_require__(9046).fromPromise const u = __nccwpck_require__(9046).fromPromise
const fs = __webpack_require__(1176) const fs = __nccwpck_require__(1176)
function pathExists (path) { function pathExists (path) {
return fs.access(path).then(() => true).catch(() => false) return fs.access(path).then(() => true).catch(() => false)
@ -3691,14 +3690,14 @@ module.exports = {
/***/ }), /***/ }),
/***/ 7357: /***/ 7357:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
const u = __webpack_require__(9046).fromCallback const u = __nccwpck_require__(9046).fromCallback
const rimraf = __webpack_require__(8761) const rimraf = __nccwpck_require__(8761)
function remove (path, callback) { function remove (path, callback) {
// Node 14.14.0+ // Node 14.14.0+
@ -3721,14 +3720,14 @@ module.exports = {
/***/ }), /***/ }),
/***/ 8761: /***/ 8761:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
const assert = __webpack_require__(2357) const assert = __nccwpck_require__(2357)
const isWindows = (process.platform === 'win32') const isWindows = (process.platform === 'win32')
@ -4031,14 +4030,14 @@ rimraf.sync = rimrafSync
/***/ }), /***/ }),
/***/ 3901: /***/ 3901:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const fs = __webpack_require__(1176) const fs = __nccwpck_require__(1176)
const path = __webpack_require__(5622) const path = __nccwpck_require__(5622)
const util = __webpack_require__(1669) const util = __nccwpck_require__(1669)
function getStats (src, dest, opts) { function getStats (src, dest, opts) {
const statFunc = opts.dereference const statFunc = opts.dereference
@ -4193,12 +4192,12 @@ module.exports = {
/***/ }), /***/ }),
/***/ 2548: /***/ 2548:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
const fs = __webpack_require__(7758) const fs = __nccwpck_require__(7758)
function utimesMillis (path, atime, mtime, callback) { function utimesMillis (path, atime, mtime, callback) {
// if (!HAS_MILLIS_RES) return fs.utimes(path, atime, mtime, callback) // if (!HAS_MILLIS_RES) return fs.utimes(path, atime, mtime, callback)
@ -4258,14 +4257,14 @@ function clone (obj) {
/***/ }), /***/ }),
/***/ 7758: /***/ 7758:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
var fs = __webpack_require__(5747) var fs = __nccwpck_require__(5747)
var polyfills = __webpack_require__(263) var polyfills = __nccwpck_require__(263)
var legacy = __webpack_require__(3086) var legacy = __nccwpck_require__(3086)
var clone = __webpack_require__(7356) var clone = __nccwpck_require__(7356)
var util = __webpack_require__(1669) var util = __nccwpck_require__(1669)
/* istanbul ignore next - node 0.x polyfill */ /* istanbul ignore next - node 0.x polyfill */
var gracefulQueue var gracefulQueue
@ -4346,7 +4345,7 @@ if (!fs[gracefulQueue]) {
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) {
process.on('exit', function() { process.on('exit', function() {
debug(fs[gracefulQueue]) debug(fs[gracefulQueue])
__webpack_require__(2357).equal(fs[gracefulQueue].length, 0) __nccwpck_require__(2357).equal(fs[gracefulQueue].length, 0)
}) })
} }
} }
@ -4638,9 +4637,9 @@ function retry () {
/***/ }), /***/ }),
/***/ 3086: /***/ 3086:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
var Stream = __webpack_require__(2413).Stream var Stream = __nccwpck_require__(2413).Stream
module.exports = legacy module.exports = legacy
@ -4763,9 +4762,9 @@ function legacy (fs) {
/***/ }), /***/ }),
/***/ 263: /***/ 263:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
var constants = __webpack_require__(7619) var constants = __nccwpck_require__(7619)
var origCwd = process.cwd var origCwd = process.cwd
var cwd = null var cwd = null
@ -5116,16 +5115,16 @@ function patch (fs) {
/***/ }), /***/ }),
/***/ 6160: /***/ 6160:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
let _fs let _fs
try { try {
_fs = __webpack_require__(7758) _fs = __nccwpck_require__(7758)
} catch (_) { } catch (_) {
_fs = __webpack_require__(5747) _fs = __nccwpck_require__(5747)
} }
const universalify = __webpack_require__(9046) const universalify = __nccwpck_require__(9046)
const { stringify, stripBom } = __webpack_require__(5902) const { stringify, stripBom } = __nccwpck_require__(5902)
async function _readFile (file, options = {}) { async function _readFile (file, options = {}) {
if (typeof options === 'string') { if (typeof options === 'string') {
@ -5267,7 +5266,7 @@ exports.fromPromise = function (fn) {
/***/ ((module) => { /***/ ((module) => {
"use strict"; "use strict";
module.exports = require("assert"); module.exports = require("assert");;
/***/ }), /***/ }),
@ -5275,7 +5274,7 @@ module.exports = require("assert");
/***/ ((module) => { /***/ ((module) => {
"use strict"; "use strict";
module.exports = require("child_process"); module.exports = require("child_process");;
/***/ }), /***/ }),
@ -5283,7 +5282,7 @@ module.exports = require("child_process");
/***/ ((module) => { /***/ ((module) => {
"use strict"; "use strict";
module.exports = require("constants"); module.exports = require("constants");;
/***/ }), /***/ }),
@ -5291,7 +5290,7 @@ module.exports = require("constants");
/***/ ((module) => { /***/ ((module) => {
"use strict"; "use strict";
module.exports = require("events"); module.exports = require("events");;
/***/ }), /***/ }),
@ -5299,7 +5298,7 @@ module.exports = require("events");
/***/ ((module) => { /***/ ((module) => {
"use strict"; "use strict";
module.exports = require("fs"); module.exports = require("fs");;
/***/ }), /***/ }),
@ -5307,7 +5306,7 @@ module.exports = require("fs");
/***/ ((module) => { /***/ ((module) => {
"use strict"; "use strict";
module.exports = require("os"); module.exports = require("os");;
/***/ }), /***/ }),
@ -5315,7 +5314,7 @@ module.exports = require("os");
/***/ ((module) => { /***/ ((module) => {
"use strict"; "use strict";
module.exports = require("path"); module.exports = require("path");;
/***/ }), /***/ }),
@ -5323,7 +5322,7 @@ module.exports = require("path");
/***/ ((module) => { /***/ ((module) => {
"use strict"; "use strict";
module.exports = require("stream"); module.exports = require("stream");;
/***/ }), /***/ }),
@ -5331,7 +5330,7 @@ module.exports = require("stream");
/***/ ((module) => { /***/ ((module) => {
"use strict"; "use strict";
module.exports = require("util"); module.exports = require("util");;
/***/ }) /***/ })
@ -5341,10 +5340,11 @@ module.exports = require("util");
/******/ var __webpack_module_cache__ = {}; /******/ var __webpack_module_cache__ = {};
/******/ /******/
/******/ // The require function /******/ // The require function
/******/ function __webpack_require__(moduleId) { /******/ function __nccwpck_require__(moduleId) {
/******/ // Check if module is in cache /******/ // Check if module is in cache
/******/ if(__webpack_module_cache__[moduleId]) { /******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ return __webpack_module_cache__[moduleId].exports; /******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ } /******/ }
/******/ // Create a new module (and put it into the cache) /******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = { /******/ var module = __webpack_module_cache__[moduleId] = {
@ -5356,7 +5356,7 @@ module.exports = require("util");
/******/ // Execute the module function /******/ // Execute the module function
/******/ var threw = true; /******/ var threw = true;
/******/ try { /******/ try {
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__);
/******/ threw = false; /******/ threw = false;
/******/ } finally { /******/ } finally {
/******/ if(threw) delete __webpack_module_cache__[moduleId]; /******/ if(threw) delete __webpack_module_cache__[moduleId];
@ -5369,10 +5369,14 @@ module.exports = require("util");
/************************************************************************/ /************************************************************************/
/******/ /* webpack/runtime/compat */ /******/ /* webpack/runtime/compat */
/******/ /******/
/******/ __webpack_require__.ab = __dirname + "/";/************************************************************************/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/
/******/ // module exports must be returned from runtime so entry inlining is disabled /******/
/******/ // startup /******/ // startup
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(3109); /******/ // This entry module is referenced by other modules so it can't be inlined
/******/ var __webpack_exports__ = __nccwpck_require__(3109);
/******/ module.exports = __webpack_exports__;
/******/
/******/ })() /******/ })()
; ;
//# sourceMappingURL=index.js.map

1
dist/index.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

127
dist/licenses.txt generated vendored Normal file
View File

@ -0,0 +1,127 @@
@actions/core
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/exec
MIT
@actions/io
MIT
@vercel/ncc
MIT
Copyright 2018 ZEIT, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
addressparser
MIT
Copyright (c) 2014-2016 Andris Reinman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
fs-extra
MIT
(The MIT License)
Copyright (c) 2011-2017 JP Richardson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
graceful-fs
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
jsonfile
MIT
(The MIT License)
Copyright (c) 2012-2015, JP Richardson <jprichardson@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
universalify
MIT
(The MIT License)
Copyright (c) 2017, Ryan Zimmerman <opensrc@ryanzim.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the 'Software'), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1
dist/sourcemap-register.js generated vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,20 @@ group "pre-checkin" {
} }
group "validate" { group "validate" {
targets = ["format-validate", "build-validate", "vendor-validate"] targets = ["vendor-validate", "format-validate", "build-validate"]
}
target "vendor-update" {
inherits = ["node-version"]
dockerfile = "./hack/build.Dockerfile"
target = "vendor-update"
output = ["."]
}
target "vendor-validate" {
inherits = ["node-version"]
dockerfile = "./hack/build.Dockerfile"
target = "vendor-validate"
} }
target "build" { target "build" {
@ -45,16 +58,3 @@ target "format-validate" {
dockerfile = "./hack/build.Dockerfile" dockerfile = "./hack/build.Dockerfile"
target = "format-validate" target = "format-validate"
} }
target "vendor-update" {
inherits = ["node-version"]
dockerfile = "./hack/vendor.Dockerfile"
target = "update"
output = ["."]
}
target "vendor-validate" {
inherits = ["node-version"]
dockerfile = "./hack/vendor.Dockerfile"
target = "validate"
}

View File

@ -2,18 +2,33 @@
ARG NODE_VERSION ARG NODE_VERSION
FROM node:${NODE_VERSION}-alpine AS base FROM node:${NODE_VERSION}-alpine AS base
RUN apk add --no-cache cpio findutils git RUN apk add --no-cache cpio findutils git tar
RUN yarn config set --home enableTelemetry 0
WORKDIR /src WORKDIR /src
FROM base AS deps FROM base AS deps
RUN --mount=type=bind,target=.,rw \ RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \ --mount=type=cache,target=/src/node_modules \
yarn install yarn install && mkdir /vendor && cp yarn.lock /vendor
FROM scratch AS vendor-update
COPY --from=deps /vendor /
FROM deps AS vendor-validate
RUN --mount=type=bind,target=.,rw \
git add -A && cp -rf /out/* .; \
if [ -n "$(git status --porcelain -- yarn.lock)" ]; then \
echo >&2 'ERROR: Vendor result differs. Please vendor your package with "docker buildx bake vendor-update"'; \
git status --porcelain -- yarn.lock; \
exit 1; \
fi
FROM deps AS build FROM deps AS build
RUN --mount=type=bind,target=.,rw \ RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \ --mount=type=cache,target=/src/node_modules \
yarn run build && mkdir /out && cp -Rf dist /out/ yarn run build && yarn run package && mkdir /out && cp -Rf dist /out/
FROM scratch AS build-update FROM scratch AS build-update
COPY --from=build /out / COPY --from=build /out /
@ -29,14 +44,16 @@ RUN --mount=type=bind,target=.,rw \
FROM deps AS format FROM deps AS format
RUN --mount=type=bind,target=.,rw \ RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \ --mount=type=cache,target=/src/node_modules \
yarn run format \ yarn run format \
&& mkdir /out && find . -name '*.ts' -not -path './node_modules/*' | cpio -pdm /out && mkdir /out && find . -name '*.ts' -not -path './node_modules/*' -not -path './.yarn/*' | cpio -pdm /out
FROM scratch AS format-update FROM scratch AS format-update
COPY --from=format /out / COPY --from=format /out /
FROM deps AS format-validate FROM deps AS format-validate
RUN --mount=type=bind,target=.,rw \ RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \ --mount=type=cache,target=/src/node_modules \
yarn run format-check \ yarn run format-check \

View File

@ -1,23 +0,0 @@
# syntax=docker/dockerfile:1.2
ARG NODE_VERSION
FROM node:${NODE_VERSION}-alpine AS base
RUN apk add --no-cache git
WORKDIR /src
FROM base AS vendored
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/node_modules \
yarn install && mkdir /out && cp yarn.lock /out
FROM scratch AS update
COPY --from=vendored /out /
FROM vendored AS validate
RUN --mount=type=bind,target=.,rw \
git add -A && cp -rf /out/* .; \
if [ -n "$(git status --porcelain -- yarn.lock)" ]; then \
echo >&2 'ERROR: Vendor result differs. Please vendor your package with "docker buildx bake vendor-update"'; \
git status --porcelain -- yarn.lock; \
exit 1; \
fi

View File

@ -3,10 +3,10 @@
"description": "GitHub Action to deploy to GitHub Pages", "description": "GitHub Action to deploy to GitHub Pages",
"main": "lib/main.js", "main": "lib/main.js",
"scripts": { "scripts": {
"build": "tsc && ncc build", "build": "tsc",
"format": "prettier --write **/*.ts", "format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts", "format-check": "prettier --check **/*.ts",
"pre-checkin": "yarn run format && yarn run build" "package": "ncc build --source-map --license licenses.txt"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -27,12 +27,12 @@
"fs-extra": "^10.0.0" "fs-extra": "^10.0.0"
}, },
"devDependencies": { "devDependencies": {
"@actions/io": "^1.0.2", "@actions/io": "^1.1.0",
"@types/fs-extra": "^9.0.1", "@types/fs-extra": "^9.0.11",
"@types/node": "^14.11.2", "@types/node": "^15.3.0",
"@vercel/ncc": "^0.24.1", "@vercel/ncc": "^0.28.5",
"prettier": "^2.1.2", "prettier": "^2.3.0",
"typescript": "^4.0.3", "typescript": "^4.2.4",
"typescript-formatter": "^7.2.2" "typescript-formatter": "^7.2.2"
} }
} }

1205
yarn.lock

File diff suppressed because it is too large Load Diff