Skip to content

Commit

Permalink
Merge branch 'aws:mainline' into mainline
Browse files Browse the repository at this point in the history
  • Loading branch information
swap-aws authored Sep 11, 2023
2 parents 4ef6826 + 3bdbe41 commit a19ca4e
Show file tree
Hide file tree
Showing 801 changed files with 90,798 additions and 613,844 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
with:
main-branch-name: 'mainline'
main-branch-name: "mainline"
- name: Set git identity
run: |-
git config user.name "github-actions"
Expand All @@ -42,7 +42,7 @@ jobs:
id: git_remote
run: echo ::set-output name=latest_commit::"$(git ls-remote origin -h ${{ github.ref }} | cut -f1)"
- name: Extract Dists
run: rsync -a . ./dist --include="*/" --include="/public/docs/dist/**" --include="/packages/*/dist/**" --exclude="*" --prune-empty-dirs
run: rsync -a . ./dist --include="*/" --include="/docs/dist/**" --include="/packages/pdk/dist/**" --exclude="*" --prune-empty-dirs
- name: Upload artifact
if: ${{ steps.git_remote.outputs.latest_commit == github.sha }}
uses: actions/[email protected]
Expand All @@ -67,7 +67,7 @@ jobs:
path: dist
- name: Release
run: errout=$(mktemp); gh release create $(cat dist/releasetag.txt) -R $GITHUB_REPOSITORY -F dist/changelog.md -t $(cat dist/releasetag.txt) --target $GITHUB_REF 2> $errout && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" $errout; then cat $errout; exit $exitcode; fi
working-directory: dist/packages/nx-monorepo
working-directory: dist/packages/pdk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
Expand All @@ -92,8 +92,8 @@ jobs:
name: build-artifact
path: dist
- name: Release
working-directory: dist/packages
run: for d in *; do cd $d && ( [ -d "dist/js" ] && pnpm --package publib@latest dlx publib-npm || echo "Ignore `basename $PWD` - no dist/js" ) && cd ..; done;
working-directory: dist/packages/pdk
run: pnpm --package publib@latest dlx publib-npm || echo "Ignore `basename $PWD` - no dist/js"
env:
NPM_DIST_TAG: latest
NPM_REGISTRY: registry.npmjs.org
Expand Down Expand Up @@ -122,8 +122,8 @@ jobs:
name: build-artifact
path: dist
- name: Release
working-directory: dist/packages
run: for d in *; do cd $d && ( [ -d "dist/java" ] && pnpm --package publib@latest dlx publib-maven || echo "Ignore `basename $PWD` - no dist/java" ) && cd ..; done;
working-directory: dist/packages/pdk
run: pnpm --package publib@latest dlx publib-maven || echo "Ignore `basename $PWD` - no dist/java"
env:
MAVEN_ENDPOINT: https://aws.oss.sonatype.org
MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
Expand Down Expand Up @@ -154,8 +154,8 @@ jobs:
name: build-artifact
path: dist
- name: Release
working-directory: dist/packages
run: for d in *; do cd $d && ( [ -d "dist/python" ] && pnpm --package publib@latest dlx publib-pypi || echo "Ignore `basename $PWD` - no dist/python" ) && cd ..; done;
working-directory: dist/packages/pdk
run: pnpm --package publib@latest dlx publib-pypi || echo "Ignore `basename $PWD` - no dist/python"
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
Expand All @@ -181,13 +181,13 @@ jobs:
git config user.name "AWS PDK Automation"
git config user.email "[email protected]"
- name: Upload docs to Github
run: zip -r docs.zip dist/public/docs/dist/docs/* && gh release upload $(cat dist/packages/nx-monorepo/dist/releasetag.txt) -R $GITHUB_REPOSITORY docs.zip && rm docs.zip
run: zip -r docs.zip dist/docs/dist/docs/* && gh release upload $(cat dist/packages/pdk/dist/releasetag.txt) -R $GITHUB_REPOSITORY docs.zip && rm docs.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
- name: Prepare Commit
run: |-
mv dist/public/docs/dist ${{ runner.temp }}/dist
mv dist/docs/dist ${{ runner.temp }}/dist
rsync --delete --exclude=.git --recursive ${{ runner.temp }}/dist/docs/ .
touch .nojekyll
git add .
Expand Down
2 changes: 1 addition & 1 deletion .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 22 additions & 4 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 8 additions & 32 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 20 additions & 24 deletions .projenrc.ts
Original file line number Diff line number Diff line change
@@ -1,45 +1,41 @@
/*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 */
import { NxProject } from "./packages/nx-monorepo/src/components/nx-project";
import { PDKProject } from "./private/pdk-project";
import { AwsArchProject } from "./private/projects/aws-arch";
import { CdkGraphProject } from "./private/projects/cdk-graph";
import { CdkGraphPluginDiagramProject } from "./private/projects/cdk-graph-plugin-diagram";
import { CloudscapeReactTsWebsiteProject } from "./private/projects/cloudscape-react-ts-website";
import { DocsProject } from "./private/projects/docs-project";
import { IdentityProject } from "./private/projects/identity-project";
import { NXMonorepoProject } from "./private/projects/nx-monorepo-project";
import { OpenApiGatewayProject } from "./private/projects/open-api-gateway-project";
import { PDKMonorepoProject } from "./private/projects/pdk-monorepo-project";
import { PDKNagProject } from "./private/projects/pdk-nag-project";
import { PipelineProject } from "./private/projects/pipeline-project";
import { StaticWebsiteProject } from "./private/projects/static-website-project";
import { TypeSafeApiProject } from "./private/projects/type-safe-api-project";
import { AwsArchProject } from "./projenrc/projects/aws-arch-project";
import { CdkGraphPluginDiagramProject } from "./projenrc/projects/cdk-graph-plugin-diagram-project";
import { CdkGraphProject } from "./projenrc/projects/cdk-graph-project";
import { CloudscapeReactTsWebsiteProject } from "./projenrc/projects/cloudscape-react-ts-website-project";
import { DocsProject } from "./projenrc/projects/docs-project";
import { IdentityProject } from "./projenrc/projects/identity-project";
import { InfrastructureProject } from "./projenrc/projects/infrastructure-project";
import { MonorepoProject } from "./projenrc/projects/monorepo-project";
import { PDKMonorepoProject } from "./projenrc/projects/pdk-monorepo-project";
import { PDKNagProject } from "./projenrc/projects/pdk-nag-project";
import { PdkProject } from "./projenrc/projects/pdk-project";
import { PipelineProject } from "./projenrc/projects/pipeline-project";
import { StaticWebsiteProject } from "./projenrc/projects/static-website-project";
import { TypeSafeApiProject } from "./projenrc/projects/type-safe-api-project";

// root/parent project
const monorepoProject = new PDKMonorepoProject();

new PDKNagProject(monorepoProject);

// public packages
new NXMonorepoProject(monorepoProject);
new MonorepoProject(monorepoProject);
new StaticWebsiteProject(monorepoProject);
new IdentityProject(monorepoProject);
new OpenApiGatewayProject(monorepoProject);
new TypeSafeApiProject(monorepoProject);
new CloudscapeReactTsWebsiteProject(monorepoProject);
new AwsArchProject(monorepoProject);
new CdkGraphProject(monorepoProject);
new CdkGraphPluginDiagramProject(monorepoProject);
new PipelineProject(monorepoProject);
new InfrastructureProject(monorepoProject);

// This must always appear after all other packages!
new PdkProject(monorepoProject);

// docs
const docsProject = new DocsProject(monorepoProject);
// Docs should have a dependency on all publishable packages
NxProject.ensure(docsProject).addImplicitDependency(
...monorepoProject.sortedSubProjects.filter(
(s: any) => s instanceof PDKProject && s.pdkRelease
)
);
new DocsProject(monorepoProject);

monorepoProject.synth();
Loading

0 comments on commit a19ca4e

Please sign in to comment.