ci: move 3rd party license generation to scheduled workflow#11811
Merged
ci: move 3rd party license generation to scheduled workflow#11811
Conversation
jcfranco
approved these changes
Mar 31, 2025
Member
|
@benelan Good catch. Should we set up an action that updates the 3rd-party license files on a schedule? cc @geospatialem |
Contributor
Author
|
Added the scheduled run to this PR |
Member
Awesome, thanks! |
benelan
added a commit
that referenced
this pull request
May 14, 2025
**Related Issue:** #11640 ## Summary Apparently [`generate-license-file`](https://www.npmjs.com/package/generate-license-file) installs our packages locally somewhere in order to generate the 3rd party licenses. The licenses script uses the version in `package.json`, so running it before publishing causes the following [error], since the version doesn't exist yet: ```text Error: Command failed: npm install --no-workspaces npm error code ETARGET npm error notarget No matching version found for @esri/calcite-components@3.1.0. npm error notarget In most cases you or one of your dependencies are requesting npm error notarget a package version that doesn't exist. ``` This moves the 3rd party license generation to the scheduled workflow. A pull request will be created with any licensing changes. [error]: https://github.com/Esri/calcite-design-system/actions/runs/14076068483/job/39419195501#step:5:1288
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue: #11640
Summary
Apparently
generate-license-fileinstalls our packages locally somewhere in order to generate the 3rd party licenses. The licenses script uses the version inpackage.json, so running it before publishing causes the following error, since the version doesn't exist yet:This moves the 3rd party license generation to the scheduled workflow. A pull request will be created with any licensing changes.