Skip to content

Store LICENSE files when publishing from GH actions#12810

Merged
nicolo-ribaudo merged 2 commits intobabel:mainfrom
nicolo-ribaudo:license-publish
Feb 17, 2021
Merged

Store LICENSE files when publishing from GH actions#12810
nicolo-ribaudo merged 2 commits intobabel:mainfrom
nicolo-ribaudo:license-publish

Conversation

@nicolo-ribaudo
Copy link
Copy Markdown
Member

Q                       A
Fixed Issues? Fixes #12807
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

@nicolo-ribaudo nicolo-ribaudo added PR: Internal 🏠 A type of pull request used for our changelog categories i: regression labels Feb 16, 2021
@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Feb 16, 2021

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/40709/

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Feb 16, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 47e6e1d:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

Comment thread .github/workflows/release.yml Outdated
name: build-artifact

- name: Generate LICENSE files
run: make clone-license
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So it wasn't being added in make prepublish? or removed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The problem was that we are running make prepublish in a different job, and to reduce CI times we only store these files:

path: |
codemods/*/lib/**/*
eslint/*/lib/**/*
packages/*/lib/**/*
packages/babel-standalone/*.js

Copy link
Copy Markdown
Contributor

@JLHwung JLHwung Feb 17, 2021

Choose a reason for hiding this comment

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

We can add the cloned license to build artifacts then. It won't affect development build since they are not generated.

Or we can merge the build job to the release job instead. The artifacts are meant to speed up CI in node matrix scenarios.

Copy link
Copy Markdown
Member Author

@nicolo-ribaudo nicolo-ribaudo Feb 17, 2021

Choose a reason for hiding this comment

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

The reason I split the jobs is because the "Publish release on npm" job has access to our npm token, so I wanted to run as few things as possible in it.

Currently it's only running yarn release-tool publish --yes, which means that it only runs code bundled ahead of time in this repository.

I prefer to add LICENSE files to the artifact.

@nicolo-ribaudo nicolo-ribaudo changed the title Generate LICENSE files in GH actions Store LICENSE files when publishing from GH actions Feb 17, 2021
@nicolo-ribaudo nicolo-ribaudo merged commit 0e06a38 into babel:main Feb 17, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the license-publish branch February 17, 2021 18:38
@nicolo-ribaudo
Copy link
Copy Markdown
Member Author

I can release a patch tomorrow. It needs to be done locally because we need need to force-publish all the packages that we published without a license.

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

Labels

i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LICENSE missing from @babel/core after 7.12.16 upgrade

4 participants