mirror of
https://github.com/goreleaser/goreleaser-action.git
synced 2026-05-19 08:51:54 +00:00
fix: dist resolution from config file (#369)
* ci: add job to check dist output from config * fix: dist resolution from config file Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
ef54bd4cd6
commit
ff11ca24a9
5 changed files with 45 additions and 3 deletions
|
|
@ -82,7 +82,7 @@ const getFilename = (distribution: string): string => {
|
|||
};
|
||||
|
||||
export async function getDistPath(yamlfile: string): Promise<string> {
|
||||
const cfg = yaml.load(yamlfile);
|
||||
const cfg = yaml.load(fs.readFileSync(yamlfile, 'utf8'));
|
||||
return cfg.dist || 'dist';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue