Skip to content

Improve CI publish container #3558

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

Merged
merged 3 commits into from
Feb 21, 2019
Merged

Improve CI publish container #3558

merged 3 commits into from
Feb 21, 2019

Conversation

etpinard
Copy link
Contributor

by storing all the npm run build outputs and by running npm pack and storing it as plotly.js.tgz

See example on https://circleci.com/gh/plotly/plotly.js/26943#artifacts/containers/0

image

image

This should make @jonmmease 's life easier - cc @plotly/plotly_js and @nicolaskruchten

@jonmmease
Copy link
Contributor

Awesome! Thanks @etpinard, I'll give this a try from plotly.py tonight

name: Pack tarball
command: |
npm pack
version=$(node -e "console.log(require('./package.json').version)")
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please apply something like | cut -c1-7 to the result of console.log to reduce the chance of running errors if any?

version=$(node -e "console.log(require('./package.json').version)" | cut -c1-7)

@antoinerg
Copy link
Contributor

💃

@etpinard etpinard merged commit b5663aa into master Feb 21, 2019
@etpinard etpinard deleted the improve-ci-publish-container branch February 21, 2019 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants