Skip to content

Commit

Permalink
script: fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
sylingd committed Dec 20, 2019
1 parent 822e220 commit 3051ad6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build/extension-config.js
Expand Up @@ -8,6 +8,7 @@ const package = require(path.resolve(root, 'package.json'));

module.exports = {
version: package.version,
repository: package.repository ? package.repository.url : "",
config,
resolve: path.resolve,
root,
Expand Down
4 changes: 2 additions & 2 deletions build/release.js
Expand Up @@ -8,7 +8,7 @@ const output = path.resolve(rootDir, 'dist-pack');

const { config } = common;

if (!config.github.enable) {
if (!config.github.enable || !config.repository) {
console.log("GitHub not enabled");
process.exit(0);
}
Expand All @@ -31,7 +31,7 @@ const assetName = config.dist.replace('{VER}', common.version);
});

// Get git names
const gitName = package.repository.url.match(/(\w+)\/(\w+)\.git/);
const gitName = config.repository.match(/(\w+)\/(\w+)\.git/);
const tagName = config.github.tag.replace('{VER}', common.version);

publishRelease({
Expand Down

0 comments on commit 3051ad6

Please sign in to comment.