Skip to content

if npm publishing into repo fails created git commits/tags should be deleted#12

Open
abaliunov-sc wants to merge 2 commits intomasterfrom
enhancement/3
Open

if npm publishing into repo fails created git commits/tags should be deleted#12
abaliunov-sc wants to merge 2 commits intomasterfrom
enhancement/3

Conversation

@abaliunov-sc
Copy link
Copy Markdown

No description provided.

Comment thread bin/npm-publish.js Outdated
function isTag(tag) {
const tagList = execSync('git tag').toString().split('\n');

for (let i = 0; i < tagList.length; i++) {
Copy link
Copy Markdown
Contributor

@kvolkovich-sc kvolkovich-sc Aug 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use Array.prototype.indexOf instead of for loop?

Comment thread bin/npm-publish.js Outdated
@@ -4,9 +4,37 @@ var program = require('commander');
var fluidPublish = require('fluid-publish');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add use strict directive.
Using let and const would be fail on NodeJS 4.x.x without it.

@abaliunov-sc
Copy link
Copy Markdown
Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants