-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into huijbers/metadata-in-framework2
- Loading branch information
Showing
517 changed files
with
18,619 additions
and
3,385 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "Dev Container Definition - AWS CDK", | ||
"image": "jsii/superchain", | ||
"postCreateCommand": "yarn build --skip-test --no-bail --skip-prereqs --skip-compat", | ||
"extensions": [ | ||
"dbaeumer.vscode-eslint@2.1.5" | ||
] | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Yarn Upgrade | ||
|
||
on: | ||
schedule: | ||
# Every wednesday at 13:37 UTC | ||
- cron: 37 13 * * 3 | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
upgrade: | ||
name: Yarn Upgrade | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check Out | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v2.1.0 | ||
with: | ||
node-version: 10 | ||
|
||
- name: Locate Yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Restore Yarn cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: |- | ||
${{ runner.os }}-yarn- | ||
- name: Install Tools | ||
run: |- | ||
npm -g install lerna npm-check-updates@^9.0.0 | ||
- name: List Mono-Repo Packages | ||
id: list-packages | ||
# These need to be ignored from the `ncu` runs! | ||
run: |- | ||
echo -n "::set-output name=list::" | ||
node -p "$(lerna ls --all --json 2>/dev/null).map(item => item.name).join(',')" | ||
- name: Run "ncu -u" | ||
# We special-case @types/node because we want to stay on the current major (minimum supported node release) | ||
# We special-case @types/fs-extra because the current major (9.x) is broken with @types/node >= 10 | ||
# We special-case aws-sdk because of breaking changes with TS interface exports in recent minor versions - https://github.com/aws/aws-sdk-js/issues/3453 | ||
# We special-case typescript because it's not semantically versionned | ||
run: |- | ||
# Upgrade dependencies at repository root | ||
ncu --upgrade --filter=@types/node,@types/fs-extra --target=minor | ||
ncu --upgrade --filter=typescript --target=patch | ||
ncu --upgrade --reject=@types/node,@types/fs-extra,typescript --target=minor | ||
# Upgrade all the packages | ||
lerna exec --parallel ncu -- --upgrade --filter=@types/node,@types/fs-extra --target=minor | ||
lerna exec --parallel ncu -- --upgrade --filter=typescript --target=patch | ||
lerna exec --parallel ncu -- --upgrade --reject='@types/node,@types/fs-extra,typescript,aws-sdk,${{ steps.list-packages.outputs.list }}' --target=minor | ||
# This will create a brand new `yarn.lock` file (this is more efficient than `yarn install && yarn upgrade`) | ||
- name: Run "yarn install --force" | ||
run: yarn install --force | ||
|
||
- name: Make Pull Request | ||
uses: peter-evans/create-pull-request@v2 | ||
with: | ||
# Git commit details | ||
branch: automation/yarn-upgrade | ||
commit-message: |- | ||
chore: npm-check-updates && yarn upgrade | ||
Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date. | ||
# Pull Request details | ||
title: 'chore: npm-check-updates && yarn upgrade' | ||
body: |- | ||
Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date. | ||
labels: contribution/core,dependencies | ||
team-reviewers: aws-cdk-team | ||
# Privileged token so automated PR validation happens | ||
token: ${{ secrets.AUTOMATION_GITHUB_TOKEN }} |
This file contains 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
Oops, something went wrong.