Skip to content

Commit 45c12a8

Browse files
committed
fix: updates
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
1 parent 640f04a commit 45c12a8

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

dist/index.js

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

src/goreleaser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as crypto from 'crypto';
22
import * as fs from 'fs';
33
import * as path from 'path';
4-
import yaml from 'js-yaml';
4+
import * as yaml from 'js-yaml';
55
import * as context from './context';
66
import * as github from './github';
77
import * as core from '@actions/core';
@@ -171,7 +171,7 @@ const getFilename = (distribution: string): string => {
171171
};
172172

173173
export async function getDistPath(yamlfile: string): Promise<string> {
174-
const cfg = yaml.load(fs.readFileSync(yamlfile, 'utf8'));
174+
const cfg = yaml.load(fs.readFileSync(yamlfile, 'utf8')) as {dist?: string};
175175
return cfg.dist || 'dist';
176176
}
177177

0 commit comments

Comments
 (0)