Skip to content

Commit

Permalink
Add correct tag to release on publish (#828).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 13, 2020
1 parent 2a78953 commit 8516076
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions admin/cmds/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

const config = require("../config");

const { latestChange } = require("../changelog");
const { ChangelogPath, latestChange } = require("../changelog");
const { getOrdered, loadPackage } = require("../depgraph");
const { getGitTag } = require("../git");
const { createRelease } = require("../github");
const { getPackageVersion, publish } = require("../npm");
const { log } = require("../log");
Expand Down Expand Up @@ -35,6 +36,8 @@ if (process.argv.length > 2) {
(async function() {
let token = null;

const gitCommit = await getGitTag(ChangelogPath);

let includeEthers = false;

// @TODO: Fail if there are any untracked files or unchecked in files
Expand Down Expand Up @@ -107,7 +110,7 @@ if (process.argv.length > 2) {
const change = latestChange();

// Publish the release
const link = await createRelease(username, password, change.version, change.title, change.content, beta);
const link = await createRelease(username, password, change.version, change.title, change.content, beta, gitCommit);
log(`<bold:Published Release:> ${ link }`);
}

Expand Down

0 comments on commit 8516076

Please sign in to comment.