Skip to content

Commit 1c09117

Browse files
committed
don't assume filename as label
same filenames may exist in different directories
1 parent 642ca03 commit 1c09117

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/publish.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ export default async (pluginConfig, context) => {
113113
// Upload generic packages
114114
const encodedVersion = encodeURIComponent(version);
115115
const encodedPackageName = encodeURIComponent(packageName);
116-
const fileName = pathlib.basename(path);
117-
const encodedLabel = encodeURIComponent(label ?? fileName);
116+
const encodedLabel = encodeURIComponent(label);
118117
// https://docs.gitlab.com/ee/user/packages/generic_packages/#publish-a-package-file
119118
uploadEndpoint = urlJoin(
120119
projectApiUrl,

0 commit comments

Comments
 (0)