Skip to content

Commit f59a835

Browse files
bump @actions/core to 1.5.0
1 parent 2a2238c commit f59a835

17 files changed

+347
-55
lines changed

.licenses/npm/@actions/core.dep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: "@actions/core"
3-
version: 1.2.6
3+
version: 1.5.0
44
type: npm
55
summary: Actions core lib
66
homepage: https://github.com/actions/toolkit/tree/main/packages/core

lib/installer.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ function getProtoc(version, includePreReleases, repoToken) {
9292
listeners: {
9393
stdout: (data) => {
9494
stdOut += data.toString();
95-
}
96-
}
95+
},
96+
},
9797
};
9898
yield exc.exec("go", ["env", "GOPATH"], options);
9999
const goPath = stdOut.trim();
@@ -148,7 +148,7 @@ function fetchVersions(includePreReleases, repoToken) {
148148
let rest;
149149
if (repoToken != "") {
150150
rest = new restm.RestClient("setup-protoc", "", [], {
151-
headers: { Authorization: "Bearer " + repoToken }
151+
headers: { Authorization: "Bearer " + repoToken },
152152
});
153153
}
154154
else {
@@ -166,9 +166,9 @@ function fetchVersions(includePreReleases, repoToken) {
166166
}
167167
}
168168
return tags
169-
.filter(tag => tag.tag_name.match(/v\d+\.[\w\.]+/g))
170-
.filter(tag => includePrerelease(tag.prerelease, includePreReleases))
171-
.map(tag => tag.tag_name.replace("v", ""));
169+
.filter((tag) => tag.tag_name.match(/v\d+\.[\w\.]+/g))
170+
.filter((tag) => includePrerelease(tag.prerelease, includePreReleases))
171+
.map((tag) => tag.tag_name.replace("v", ""));
172172
});
173173
}
174174
// Compute an actual version starting from the `version` configuration param.
@@ -183,13 +183,13 @@ function computeVersion(version, includePreReleases, repoToken) {
183183
version = version.slice(0, version.length - 2);
184184
}
185185
const allVersions = yield fetchVersions(includePreReleases, repoToken);
186-
const validVersions = allVersions.filter(v => semver.valid(v));
187-
const possibleVersions = validVersions.filter(v => v.startsWith(version));
186+
const validVersions = allVersions.filter((v) => semver.valid(v));
187+
const possibleVersions = validVersions.filter((v) => v.startsWith(version));
188188
const versionMap = new Map();
189-
possibleVersions.forEach(v => versionMap.set(normalizeVersion(v), v));
189+
possibleVersions.forEach((v) => versionMap.set(normalizeVersion(v), v));
190190
const versions = Array.from(versionMap.keys())
191191
.sort(semver.rcompare)
192-
.map(v => versionMap.get(v));
192+
.map((v) => versionMap.get(v));
193193
core.debug(`evaluating ${versions.length} versions`);
194194
if (versions.length === 0) {
195195
throw new Error("unable to get latest version");
@@ -211,7 +211,7 @@ function normalizeVersion(version) {
211211
else {
212212
// handle beta and rc
213213
// e.g. 1.10beta1 -? 1.10.0-beta1, 1.10rc1 -> 1.10.0-rc1
214-
if (preStrings.some(el => versionPart[1].includes(el))) {
214+
if (preStrings.some((el) => versionPart[1].includes(el))) {
215215
versionPart[1] = versionPart[1]
216216
.replace("beta", ".0-beta")
217217
.replace("rc", ".0-rc")
@@ -227,7 +227,7 @@ function normalizeVersion(version) {
227227
else {
228228
// handle beta and rc
229229
// e.g. 1.8.5beta1 -> 1.8.5-beta1, 1.8.5rc1 -> 1.8.5-rc1
230-
if (preStrings.some(el => versionPart[2].includes(el))) {
230+
if (preStrings.some((el) => versionPart[2].includes(el))) {
231231
versionPart[2] = versionPart[2]
232232
.replace("beta", "-beta")
233233
.replace("rc", "-rc")

node_modules/@actions/core/README.md

Lines changed: 118 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/core/lib/command.d.ts

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/core/lib/command.js

Lines changed: 15 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/core/lib/command.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/core/lib/core.d.ts

Lines changed: 63 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)