Skip to content

Commit 979c865

Browse files
author
Robert Jackson
committed
Release 4.0.0-beta.4
1 parent 7857675 commit 979c865

File tree

4 files changed

+34
-6
lines changed

4 files changed

+34
-6
lines changed

CHANGELOG.md

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

77

88

9+
10+
## v4.0.0-beta.4 (2022-10-03)
11+
12+
#### :bug: Bug Fix
13+
* [#115](https://github.com/volta-cli/action/pull/115) Add support for Volta 1.1.0 ([@rwjblue](https://github.com/rwjblue))
14+
15+
#### Committers: 1
16+
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
17+
18+
919
## v4.0.0-beta.3 (2022-10-03)
1020

1121
#### :bug: Bug Fix

dist/index.js

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22922,12 +22922,14 @@ async function getLatestVoltaFromVoltaSH() {
2292222922
function voltaVersionHasSetup(version) {
2292322923
return semver.gte(version, '0.7.0');
2292422924
}
22925-
async function buildDownloadUrl(platform, version, variant = '', openSSLVersionForTesting = '') {
22925+
async function buildDownloadUrl(platform, arch, version, variant = '', openSSLVersionForTesting = '') {
2292622926
let fileName = '';
22927+
const isOpenSSLDependent = semver.lt(version, '1.1.0');
2292722928
if (variant) {
2292822929
fileName = `volta-${version}-${variant}.tar.gz`;
2292922930
}
22930-
else {
22931+
else if (isOpenSSLDependent) {
22932+
// TODO: remove this branch when support for volta < 1.1.0 is dropped
2293122933
switch (platform) {
2293222934
case 'darwin':
2293322935
fileName = `volta-${version}-macos.tar.gz`;
@@ -22944,6 +22946,22 @@ async function buildDownloadUrl(platform, version, variant = '', openSSLVersionF
2294422946
throw new Error(`your platform ${platform} is not yet supported`);
2294522947
}
2294622948
}
22949+
else {
22950+
switch (platform) {
22951+
case 'darwin':
22952+
fileName = `volta-${version}-macos${arch === 'arm64' ? '-aarch64' : ''}.tar.gz`;
22953+
break;
22954+
case 'linux': {
22955+
fileName = `volta-${version}-linux.tar.gz`;
22956+
break;
22957+
}
22958+
case 'win32':
22959+
fileName = `volta-${version}-windows-x86_64.msi`;
22960+
break;
22961+
default:
22962+
throw new Error(`your platform ${platform} is not yet supported`);
22963+
}
22964+
}
2294722965
return `https://github.com/volta-cli/volta/releases/download/v${version}/${fileName}`;
2294822966
}
2294922967
async function getOpenSSLVersion(version = '') {
@@ -23022,7 +23040,7 @@ async function acquireVolta(version, options) {
2302223040
// Download - a tool installer intimately knows how to get the tool (and construct urls)
2302323041
//
2302423042
core.info(`downloading volta@${version}`);
23025-
const downloadUrl = await buildDownloadUrl(external_os_.platform(), version, options.variant);
23043+
const downloadUrl = await buildDownloadUrl(external_os_.platform(), external_os_.arch(), version, options.variant);
2302623044
core.debug(`downloading from \`${downloadUrl}\``);
2302723045
const downloadPath = await tool_cache.downloadTool(downloadUrl, undefined, options.authToken);
2302823046
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": "4.0.0-beta.3",
3+
"version": "4.0.0-beta.4",
44
"private": true,
55
"description": "Setup volta for usage in your CI runs",
66
"keywords": [

0 commit comments

Comments
 (0)