Skip to content

Commit 007b150

Browse files
author
Robert Jackson
committed
Release 3.0.3
1 parent 7c92d20 commit 007b150

File tree

4 files changed

+47
-18
lines changed

4 files changed

+47
-18
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33

44

55

6+
7+
## v3.0.3 (2022-10-18)
8+
9+
#### :bug: Bug Fix
10+
* [#118](https://github.com/volta-cli/action/pull/118) [BACKPORT] Add [email protected] support to v3.x releases. ([@rwjblue](https://github.com/rwjblue))
11+
12+
#### Committers: 1
13+
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
14+
15+
616
## v3.0.2 (2022-09-01)
717

818
#### :bug: Bug Fix

dist/index.js

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22674,22 +22674,41 @@ async function getLatestVolta(authToken) {
2267422674
function voltaVersionHasSetup(version) {
2267522675
return semver.gte(version, '0.7.0');
2267622676
}
22677-
async function buildDownloadUrl(platform, version, openSSLVersion = '') {
22677+
async function buildDownloadUrl(platform, arch, version, openSSLVersion = '') {
2267822678
let fileName;
22679-
switch (platform) {
22680-
case 'darwin':
22681-
fileName = `volta-${version}-macos.tar.gz`;
22682-
break;
22683-
case 'linux': {
22684-
openSSLVersion = await getOpenSSLVersion(openSSLVersion);
22685-
fileName = `volta-${version}-linux-${openSSLVersion}.tar.gz`;
22686-
break;
22679+
const isOpenSSLDependent = semver.lt(version, '1.1.0');
22680+
if (isOpenSSLDependent) {
22681+
switch (platform) {
22682+
case 'darwin':
22683+
fileName = `volta-${version}-macos.tar.gz`;
22684+
break;
22685+
case 'linux': {
22686+
openSSLVersion = await getOpenSSLVersion(openSSLVersion);
22687+
fileName = `volta-${version}-linux-${openSSLVersion}.tar.gz`;
22688+
break;
22689+
}
22690+
case 'win32':
22691+
fileName = `volta-${version}-windows-x86_64.msi`;
22692+
break;
22693+
default:
22694+
throw new Error(`your platform ${platform} is not yet supported`);
22695+
}
22696+
}
22697+
else {
22698+
switch (platform) {
22699+
case 'darwin':
22700+
fileName = `volta-${version}-macos${arch === 'arm64' ? '-aarch64' : ''}.tar.gz`;
22701+
break;
22702+
case 'linux': {
22703+
fileName = `volta-${version}-linux.tar.gz`;
22704+
break;
22705+
}
22706+
case 'win32':
22707+
fileName = `volta-${version}-windows-x86_64.msi`;
22708+
break;
22709+
default:
22710+
throw new Error(`your platform ${platform} is not yet supported`);
2268722711
}
22688-
case 'win32':
22689-
fileName = `volta-${version}-windows-x86_64.msi`;
22690-
break;
22691-
default:
22692-
throw new Error(`your platform ${platform} is not yet supported`);
2269322712
}
2269422713
return `https://github.com/volta-cli/volta/releases/download/v${version}/${fileName}`;
2269522714
}
@@ -22773,7 +22792,7 @@ async function acquireVolta(version, authToken, openSSLVersion) {
2277322792
// Download - a tool installer intimately knows how to get the tool (and construct urls)
2277422793
//
2277522794
core.info(`downloading volta@${version}`);
22776-
const downloadUrl = await buildDownloadUrl(external_os_.platform(), version, openSSLVersion);
22795+
const downloadUrl = await buildDownloadUrl(external_os_.platform(), external_os_.arch(), version, openSSLVersion);
2277722796
core.debug(`downloading from \`${downloadUrl}\``);
2277822797
const downloadPath = await tool_cache.downloadTool(downloadUrl, undefined, authToken);
2277922798
const voltaHome = external_path_.join(

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@volta-cli/action",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"private": true,
55
"description": "Setup volta for usage in your CI runs",
66
"keywords": [

0 commit comments

Comments
 (0)