Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post publish using tag from the package version #5467

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Feb 3, 2021

Fixes #5465.

@plotly/plotly_js

@archmoj archmoj added bug something broken status: reviewable labels Feb 3, 2021
@archmoj archmoj added this to the NEXT milestone Feb 3, 2021
@@ -7,6 +7,8 @@ var glob = require('glob');
var common = require('./util/common');
var constants = require('./util/constants');
var pkg = require('../package.json');
var rc = pkg.version.split('-')[1];
Copy link
Contributor

Choose a reason for hiding this comment

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

won't this error out if it's a non-RC version string like 2.0.1 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No I don't think so. It was tested. In that case the tag and variable rc would be undefined.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh Javascript :) "string".split("-")[1] -> undefined ... ok then! I've been doing Python too long!

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃

@archmoj archmoj merged commit 446b31e into master Feb 3, 2021
@archmoj archmoj deleted the use-tag-in-post-publish branch February 3, 2021 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use publish tag argument in post-publish
3 participants