mirror of
https://github.com/actions/publish-action.git
synced 2025-02-24 16:22:31 +00:00
fix for check failures
This commit is contained in:
parent
7c26ccdeaa
commit
b21b313b0e
BIN
.licenses/npm/semver.dep.yml
generated
BIN
.licenses/npm/semver.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/undici.dep.yml
generated
BIN
.licenses/npm/undici.dep.yml
generated
Binary file not shown.
59
dist/index.js
vendored
59
dist/index.js
vendored
@ -6182,7 +6182,7 @@ function onceStrict (fn) {
|
|||||||
|
|
||||||
const debug = __nccwpck_require__(427)
|
const debug = __nccwpck_require__(427)
|
||||||
const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(2293)
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(2293)
|
||||||
const { safeRe: re, t } = __nccwpck_require__(9523)
|
const { safeRe: re, safeSrc: src, t } = __nccwpck_require__(9523)
|
||||||
|
|
||||||
const parseOptions = __nccwpck_require__(785)
|
const parseOptions = __nccwpck_require__(785)
|
||||||
const { compareIdentifiers } = __nccwpck_require__(2463)
|
const { compareIdentifiers } = __nccwpck_require__(2463)
|
||||||
@ -6192,7 +6192,7 @@ class SemVer {
|
|||||||
|
|
||||||
if (version instanceof SemVer) {
|
if (version instanceof SemVer) {
|
||||||
if (version.loose === !!options.loose &&
|
if (version.loose === !!options.loose &&
|
||||||
version.includePrerelease === !!options.includePrerelease) {
|
version.includePrerelease === !!options.includePrerelease) {
|
||||||
return version
|
return version
|
||||||
} else {
|
} else {
|
||||||
version = version.version
|
version = version.version
|
||||||
@ -6340,7 +6340,7 @@ class SemVer {
|
|||||||
do {
|
do {
|
||||||
const a = this.build[i]
|
const a = this.build[i]
|
||||||
const b = other.build[i]
|
const b = other.build[i]
|
||||||
debug('prerelease compare', i, a, b)
|
debug('build compare', i, a, b)
|
||||||
if (a === undefined && b === undefined) {
|
if (a === undefined && b === undefined) {
|
||||||
return 0
|
return 0
|
||||||
} else if (b === undefined) {
|
} else if (b === undefined) {
|
||||||
@ -6358,6 +6358,20 @@ class SemVer {
|
|||||||
// preminor will bump the version up to the next minor release, and immediately
|
// preminor will bump the version up to the next minor release, and immediately
|
||||||
// down to pre-release. premajor and prepatch work the same way.
|
// down to pre-release. premajor and prepatch work the same way.
|
||||||
inc (release, identifier, identifierBase) {
|
inc (release, identifier, identifierBase) {
|
||||||
|
if (release.startsWith('pre')) {
|
||||||
|
if (!identifier && identifierBase === false) {
|
||||||
|
throw new Error('invalid increment argument: identifier is empty')
|
||||||
|
}
|
||||||
|
// Avoid an invalid semver results
|
||||||
|
if (identifier) {
|
||||||
|
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`)
|
||||||
|
const match = `-${identifier}`.match(r)
|
||||||
|
if (!match || match[1] !== identifier) {
|
||||||
|
throw new Error(`invalid identifier: ${identifier}`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch (release) {
|
switch (release) {
|
||||||
case 'premajor':
|
case 'premajor':
|
||||||
this.prerelease.length = 0
|
this.prerelease.length = 0
|
||||||
@ -6388,6 +6402,12 @@ class SemVer {
|
|||||||
}
|
}
|
||||||
this.inc('pre', identifier, identifierBase)
|
this.inc('pre', identifier, identifierBase)
|
||||||
break
|
break
|
||||||
|
case 'release':
|
||||||
|
if (this.prerelease.length === 0) {
|
||||||
|
throw new Error(`version ${this.raw} is not a prerelease`)
|
||||||
|
}
|
||||||
|
this.prerelease.length = 0
|
||||||
|
break
|
||||||
|
|
||||||
case 'major':
|
case 'major':
|
||||||
// If this is a pre-major version, bump up to the same major version.
|
// If this is a pre-major version, bump up to the same major version.
|
||||||
@ -6431,10 +6451,6 @@ class SemVer {
|
|||||||
case 'pre': {
|
case 'pre': {
|
||||||
const base = Number(identifierBase) ? 1 : 0
|
const base = Number(identifierBase) ? 1 : 0
|
||||||
|
|
||||||
if (!identifier && identifierBase === false) {
|
|
||||||
throw new Error('invalid increment argument: identifier is empty')
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.prerelease.length === 0) {
|
if (this.prerelease.length === 0) {
|
||||||
this.prerelease = [base]
|
this.prerelease = [base]
|
||||||
} else {
|
} else {
|
||||||
@ -6634,6 +6650,7 @@ exports = module.exports = {}
|
|||||||
const re = exports.re = []
|
const re = exports.re = []
|
||||||
const safeRe = exports.safeRe = []
|
const safeRe = exports.safeRe = []
|
||||||
const src = exports.src = []
|
const src = exports.src = []
|
||||||
|
const safeSrc = exports.safeSrc = []
|
||||||
const t = exports.t = {}
|
const t = exports.t = {}
|
||||||
let R = 0
|
let R = 0
|
||||||
|
|
||||||
@ -6666,6 +6683,7 @@ const createToken = (name, value, isGlobal) => {
|
|||||||
debug(name, index, value)
|
debug(name, index, value)
|
||||||
t[name] = index
|
t[name] = index
|
||||||
src[index] = value
|
src[index] = value
|
||||||
|
safeSrc[index] = safe
|
||||||
re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
|
re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
|
||||||
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)
|
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)
|
||||||
}
|
}
|
||||||
@ -6778,12 +6796,17 @@ createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`)
|
|||||||
|
|
||||||
// Coercion.
|
// Coercion.
|
||||||
// Extract anything that could conceivably be a part of a valid semver
|
// Extract anything that could conceivably be a part of a valid semver
|
||||||
createToken('COERCE', `${'(^|[^\\d])' +
|
createToken('COERCEPLAIN', `${'(^|[^\\d])' +
|
||||||
'(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +
|
'(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +
|
||||||
`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
|
`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
|
||||||
`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
|
`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)
|
||||||
|
createToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\d])`)
|
||||||
|
createToken('COERCEFULL', src[t.COERCEPLAIN] +
|
||||||
|
`(?:${src[t.PRERELEASE]})?` +
|
||||||
|
`(?:${src[t.BUILD]})?` +
|
||||||
`(?:$|[^\\d])`)
|
`(?:$|[^\\d])`)
|
||||||
createToken('COERCERTL', src[t.COERCE], true)
|
createToken('COERCERTL', src[t.COERCE], true)
|
||||||
|
createToken('COERCERTLFULL', src[t.COERCEFULL], true)
|
||||||
|
|
||||||
// Tilde ranges.
|
// Tilde ranges.
|
||||||
// Meaning is "reasonably at or greater than"
|
// Meaning is "reasonably at or greater than"
|
||||||
@ -15178,6 +15201,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
|
|||||||
const { File: UndiciFile } = __nccwpck_require__(8511)
|
const { File: UndiciFile } = __nccwpck_require__(8511)
|
||||||
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
|
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
|
||||||
|
|
||||||
|
let random
|
||||||
|
try {
|
||||||
|
const crypto = __nccwpck_require__(6005)
|
||||||
|
random = (max) => crypto.randomInt(0, max)
|
||||||
|
} catch {
|
||||||
|
random = (max) => Math.floor(Math.random(max))
|
||||||
|
}
|
||||||
|
|
||||||
let ReadableStream = globalThis.ReadableStream
|
let ReadableStream = globalThis.ReadableStream
|
||||||
|
|
||||||
/** @type {globalThis['File']} */
|
/** @type {globalThis['File']} */
|
||||||
@ -15263,7 +15294,7 @@ function extractBody (object, keepalive = false) {
|
|||||||
// Set source to a copy of the bytes held by object.
|
// Set source to a copy of the bytes held by object.
|
||||||
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
|
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
|
||||||
} else if (util.isFormDataLike(object)) {
|
} else if (util.isFormDataLike(object)) {
|
||||||
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
|
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
|
||||||
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
|
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
|
||||||
|
|
||||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
||||||
@ -30086,6 +30117,14 @@ module.exports = require("net");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 6005:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:crypto");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 5673:
|
/***/ 5673:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
7
package-lock.json
generated
7
package-lock.json
generated
@ -5265,9 +5265,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/undici": {
|
"node_modules/undici": {
|
||||||
"version": "5.28.4",
|
"version": "5.28.5",
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz",
|
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.5.tgz",
|
||||||
"integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
|
"integrity": "sha512-zICwjrDrcrUE0pyyJc1I2QzBkLM8FINsgOrt6WjA+BgajVq9Nxu2PbFFXUrAggLfDXlZGZBVZYw7WNV5KiBiBA==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fastify/busboy": "^2.0.0"
|
"@fastify/busboy": "^2.0.0"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user