Skip to content

Commit

Permalink
chore(docs): readd missing semicolon, use correct description for assets
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasSchubert committed Jan 22, 2023
1 parent b1110f8 commit fa5680c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -34,7 +34,7 @@ The plugin can be configured in the [**semantic-release** configuration file](ht
"assets": [
{"path": "dist/asset.min.css", "label": "CSS distribution"},
{"path": "dist/asset.min.js", "label": "JS distribution", "type": "generic_package"},
{"path": "dist/asset.min.js", "label": "v${nextRelease.version}.js"}
{"path": "dist/asset.min.js", "label": "v${nextRelease.version}.js"},
{"url": "https://gitlab.com/gitlab-org/gitlab/-/blob/master/README.md"}
]
}]
Expand Down
3 changes: 2 additions & 1 deletion lib/publish.js
Expand Up @@ -51,6 +51,7 @@ module.exports = async (pluginConfig, context) => {
const filepath = asset.filepath ? template(asset.filepath)(context) : undefined;
const target = asset.target ? template(asset.target)(context) : undefined;
const status = asset.status ? template(asset.status)(context) : undefined;

if (_url) {
assetsList.push({label, rawUrl: _url, type, filepath});
debug('use link from release setting: %s', _url);
Expand Down Expand Up @@ -78,7 +79,7 @@ module.exports = async (pluginConfig, context) => {
debug('file target: %o', target);
debug('file status: %o', status);

// Uploaded files to the project
// Uploaded assets to the project
const form = new FormData();
form.append('file', createReadStream(file));

Expand Down

0 comments on commit fa5680c

Please sign in to comment.