Skip to content

Commit

Permalink
fix: Fixed asset labels
Browse files Browse the repository at this point in the history
  • Loading branch information
seebeen committed Aug 2, 2023
1 parent 37ecbde commit 77ec52b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ export function generateConfig(opts: ConfigOpts): SemanticReleaseConfig {
opts?.wp?.releasePath ?? '/tmp/wp-release',
'package.zip',
),
label: assetName + ' v${nextRelease.version}',
name: assetLabel + '-${nextRelease.version}.zip',
label: assetLabel + ' v${nextRelease.version}',
name: assetName + '-${nextRelease.version}.zip',
},
];

if (opts?.publishAssets) {
ghAssets.push({
path: path.join(opts?.wp?.releasePath ?? '/tmp/wp-release', 'assets.zip'),
label: assetName + ' Assets v${nextRelease.version}',
name: assetLabel + '-assets-${nextRelease.version}.zip',
label: assetLabel + ' Assets v${nextRelease.version}',
name: assetName + '-assets-${nextRelease.version}.zip',
});
}

Expand Down

0 comments on commit 77ec52b

Please sign in to comment.