-
Notifications
You must be signed in to change notification settings - Fork 245
chore(deps): update leafygreen packages to latest #6555
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
Changes from 5 commits
8b4d8b9
02f92d0
5ff4f11
ad78819
dfb2847
67a6999
12c7d6e
a5aea96
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Update leafygreen packages | ||
|
|
||
| # Runs nightly and manually | ||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: "0 0 * * *" | ||
|
|
||
| jobs: | ||
| update_generated_files: | ||
| name: Update Leafygreen | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| # don't checkout a detatched HEAD | ||
| ref: ${{ github.head_ref }} | ||
|
|
||
| # this is important so git log can pick up on | ||
| # the whole history to generate the list of AUTHORS | ||
| fetch-depth: '0' | ||
|
|
||
| - name: Setup git | ||
| run: | | ||
| git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
| git config --local user.name "github-actions[bot]" | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: 20.16.0 | ||
| cache: 'npm' | ||
|
|
||
| - name: Install [email protected] | ||
| run: | | ||
| npm install -g [email protected] | ||
| - name: Install Dependencies | ||
| run: | | ||
| npm -v | ||
| npm ci | ||
| - name: Bump packages | ||
| run: | | ||
| npm add $(cat packages/compass-components/package.json | jq -r '.dependencies | keys[]' | grep "@leafygreen-ui" | sed s/$/@latest/ | xargs) --workspace=@mongodb-js/compass-components | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now i am thinking about
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and its available there: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#tools |
||
| git add . | ||
| git commit --no-allow-empty -m "chore(deps): update leafygreen packages" || true | ||
| - name: Create Pull Request | ||
| id: cpr | ||
| uses: peter-evans/create-pull-request@v6 | ||
| with: | ||
| token: ${{ secrets.SVC_DEVTOOLSBOT_TOKEN }} | ||
| commit-message: 'chore(deps): update leafygreen packages' | ||
| branch: ci/update-leafygreen | ||
| title: 'chore(deps): update leafygreen packages' | ||
| labels: no-title-validation | ||
| body: | | ||
| - Update leafygreen | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this whole file is a copy of
update-electronwith lg changes