Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2024-05-28 09:50:41 -03:00
parent 2d86541f03
commit 9b0b610e34
No known key found for this signature in database
5 changed files with 5 additions and 6 deletions

View file

@ -1,4 +1,4 @@
import { describe, expect, it } from '@jest/globals';
import {describe, expect, it} from '@jest/globals';
import * as github from '../src/github';
describe('getRelease', () => {

View file

@ -1,4 +1,4 @@
import { describe, expect, it } from '@jest/globals';
import {describe, expect, it} from '@jest/globals';
import * as fs from 'fs';
import * as goreleaser from '../src/goreleaser';
@ -38,7 +38,6 @@ describe('install', () => {
expect(fs.existsSync(bin)).toBe(true);
}, 100000);
it('acquires latest version of GoReleaser Pro', async () => {
const bin = await goreleaser.install('goreleaser-pro', 'latest');
expect(fs.existsSync(bin)).toBe(true);

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -17,7 +17,7 @@ export const getRelease = async (distribution: string, version: string): Promise
export const getReleaseTag = async (distribution: string, version: string): Promise<GitHubRelease> => {
if (version === 'nightly') {
return { tag_name: version };
return {tag_name: version};
}
const tag: string = (await resolveVersion(distribution, version)) || version;
const suffix: string = goreleaser.distribSuffix(distribution);