Skip to content

Commit

Permalink
Release 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Oct 18, 2022
1 parent 703d63c commit c608267
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 37 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Changelog



## v2.0.3 (2022-10-18)

#### :bug: Bug Fix
* [#119](https://github.com/volta-cli/action/pull/119) [BACKPORT] Add [email protected] support to v2.x release ([@rwjblue](https://github.com/rwjblue))

#### Committers: 1
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))


## v2.0.2 (2022-08-17)

#### :bug: Bug Fix
Expand Down
88 changes: 54 additions & 34 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module";
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

Expand Down Expand Up @@ -30239,22 +30240,41 @@ async function getLatestVolta() {
function voltaVersionHasSetup(version) {
return semver.gte(version, '0.7.0');
}
async function buildDownloadUrl(platform, version, openSSLVersion = '') {
async function buildDownloadUrl(platform, arch, version, openSSLVersion = '') {
let fileName;
switch (platform) {
case 'darwin':
fileName = `volta-${version}-macos.tar.gz`;
break;
case 'linux': {
openSSLVersion = await getOpenSSLVersion(openSSLVersion);
fileName = `volta-${version}-linux-${openSSLVersion}.tar.gz`;
break;
const isOpenSSLDependent = semver.lt(version, '1.1.0');
if (isOpenSSLDependent) {
switch (platform) {
case 'darwin':
fileName = `volta-${version}-macos.tar.gz`;
break;
case 'linux': {
openSSLVersion = await getOpenSSLVersion(openSSLVersion);
fileName = `volta-${version}-linux-${openSSLVersion}.tar.gz`;
break;
}
case 'win32':
fileName = `volta-${version}-windows-x86_64.msi`;
break;
default:
throw new Error(`your platform ${platform} is not yet supported`);
}
}
else {
switch (platform) {
case 'darwin':
fileName = `volta-${version}-macos${arch === 'arm64' ? '-aarch64' : ''}.tar.gz`;
break;
case 'linux': {
fileName = `volta-${version}-linux.tar.gz`;
break;
}
case 'win32':
fileName = `volta-${version}-windows-x86_64.msi`;
break;
default:
throw new Error(`your platform ${platform} is not yet supported`);
}
case 'win32':
fileName = `volta-${version}-windows-x86_64.msi`;
break;
default:
throw new Error(`your platform ${platform} is not yet supported`);
}
return `https://github.com/volta-cli/volta/releases/download/v${version}/${fileName}`;
}
Expand Down Expand Up @@ -30335,7 +30355,7 @@ async function acquireVolta(version) {
// Download - a tool installer intimately knows how to get the tool (and construct urls)
//
core.info(`downloading volta@${version}`);
const downloadUrl = await buildDownloadUrl(os.platform(), version);
const downloadUrl = await buildDownloadUrl(os.platform(), os.arch(), version);
core.debug(`downloading from \`${downloadUrl}\``);
const downloadPath = await tc.downloadTool(downloadUrl);
const voltaHome = path.join(
Expand Down Expand Up @@ -30576,31 +30596,31 @@ exports.writeRegistryToFile = writeRegistryToFile;
/***/ ((module) => {

"use strict";
module.exports = require("assert");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("assert");

/***/ }),

/***/ 4300:
/***/ ((module) => {

"use strict";
module.exports = require("buffer");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("buffer");

/***/ }),

/***/ 2081:
/***/ ((module) => {

"use strict";
module.exports = require("child_process");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("child_process");

/***/ }),

/***/ 6113:
/***/ ((module) => {

"use strict";
module.exports = require("crypto");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("crypto");

/***/ }),

Expand All @@ -30616,23 +30636,23 @@ module.exports = require("dns");
/***/ ((module) => {

"use strict";
module.exports = require("events");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("events");

/***/ }),

/***/ 7147:
/***/ ((module) => {

"use strict";
module.exports = require("fs");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs");

/***/ }),

/***/ 3685:
/***/ ((module) => {

"use strict";
module.exports = require("http");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("http");

/***/ }),

Expand All @@ -30648,95 +30668,95 @@ module.exports = require("http2");
/***/ ((module) => {

"use strict";
module.exports = require("https");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("https");

/***/ }),

/***/ 1808:
/***/ ((module) => {

"use strict";
module.exports = require("net");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("net");

/***/ }),

/***/ 2037:
/***/ ((module) => {

"use strict";
module.exports = require("os");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("os");

/***/ }),

/***/ 1017:
/***/ ((module) => {

"use strict";
module.exports = require("path");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("path");

/***/ }),

/***/ 5477:
/***/ ((module) => {

"use strict";
module.exports = require("punycode");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("punycode");

/***/ }),

/***/ 2781:
/***/ ((module) => {

"use strict";
module.exports = require("stream");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream");

/***/ }),

/***/ 1576:
/***/ ((module) => {

"use strict";
module.exports = require("string_decoder");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("string_decoder");

/***/ }),

/***/ 9512:
/***/ ((module) => {

"use strict";
module.exports = require("timers");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("timers");

/***/ }),

/***/ 4404:
/***/ ((module) => {

"use strict";
module.exports = require("tls");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("tls");

/***/ }),

/***/ 7310:
/***/ ((module) => {

"use strict";
module.exports = require("url");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("url");

/***/ }),

/***/ 3837:
/***/ ((module) => {

"use strict";
module.exports = require("util");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("util");

/***/ }),

/***/ 9796:
/***/ ((module) => {

"use strict";
module.exports = require("zlib");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("zlib");

/***/ }),

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@volta-cli/action",
"version": "2.0.2",
"version": "2.0.3",
"private": true,
"description": "Setup volta for usage in your CI runs",
"keywords": [
Expand Down

0 comments on commit c608267

Please sign in to comment.