From 79db88d05923c406dc2ba4bc17b087f1fba371ff Mon Sep 17 00:00:00 2001 From: epolon Date: Tue, 7 Jan 2025 11:32:48 +0200 Subject: [PATCH] regen Signed-off-by: epolon --- .backportrc.json | 13 - .gitattributes | 7 - .github/workflows/backport.yml | 29 -- .github/workflows/release-1.x.yml | 301 ------------------ .../upgrade-compiler-dependencies-1.x.yml | 93 ------ .../workflows/upgrade-configuration-1.x.yml | 93 ------ .../upgrade-dev-dependencies-1.x.yml | 93 ------ .../upgrade-runtime-dependencies-1.x.yml | 93 ------ .gitignore | 7 - .npmignore | 1 - .projen/files.json | 7 - .projen/tasks.json | 25 -- .projenrc.js | 8 - package.json | 1 - 14 files changed, 771 deletions(-) delete mode 100644 .backportrc.json delete mode 100644 .github/workflows/backport.yml delete mode 100644 .github/workflows/release-1.x.yml delete mode 100644 .github/workflows/upgrade-compiler-dependencies-1.x.yml delete mode 100644 .github/workflows/upgrade-configuration-1.x.yml delete mode 100644 .github/workflows/upgrade-dev-dependencies-1.x.yml delete mode 100644 .github/workflows/upgrade-runtime-dependencies-1.x.yml diff --git a/.backportrc.json b/.backportrc.json deleted file mode 100644 index 711389a072..0000000000 --- a/.backportrc.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "commitConflicts": true, - "targetPRLabels": [ - "backport", - "auto-approve" - ], - "backportBranchName": "backport/{{targetBranch}}-{{refValues}}", - "prTitle": "{{sourcePullRequest.title}} (backport #{{sourcePullRequest.number}})", - "targetBranchChoices": [ - "1.x" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." -} diff --git a/.gitattributes b/.gitattributes index 32ae692203..5570eb7bc0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,28 +2,21 @@ * text=auto eol=lf *.snap linguist-generated -/.backportrc.json linguist-generated /.eslintrc.json linguist-generated /.gitattributes linguist-generated /.github/ISSUE_TEMPLATE/config.yml linguist-generated /.github/pull_request_template.md linguist-generated /.github/workflows/auto-approve.yml linguist-generated /.github/workflows/auto-queue.yml linguist-generated -/.github/workflows/backport.yml linguist-generated /.github/workflows/build.yml linguist-generated /.github/workflows/pull-request-lint.yml linguist-generated -/.github/workflows/release-1.x.yml linguist-generated /.github/workflows/release.yml linguist-generated /.github/workflows/security.yml linguist-generated /.github/workflows/stale.yml linguist-generated /.github/workflows/triage.yml linguist-generated -/.github/workflows/upgrade-compiler-dependencies-1.x.yml linguist-generated /.github/workflows/upgrade-compiler-dependencies-2.x.yml linguist-generated -/.github/workflows/upgrade-configuration-1.x.yml linguist-generated /.github/workflows/upgrade-configuration-2.x.yml linguist-generated -/.github/workflows/upgrade-dev-dependencies-1.x.yml linguist-generated /.github/workflows/upgrade-dev-dependencies-2.x.yml linguist-generated -/.github/workflows/upgrade-runtime-dependencies-1.x.yml linguist-generated /.github/workflows/upgrade-runtime-dependencies-2.x.yml linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml deleted file mode 100644 index 74c7fb8380..0000000000 --- a/.github/workflows/backport.yml +++ /dev/null @@ -1,29 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -name: backport -on: - pull_request_target: - types: - - labeled - - unlabeled - - closed -jobs: - backport: - name: Backport PR - runs-on: ubuntu-latest - permissions: {} - if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport')) - steps: - - name: Check for backport labels - id: check_labels - run: |- - labels='${{ toJSON(github.event.pull_request.labels.*.name) }}' - matched=$(echo $labels | jq '.|map(select(startswith("backport-to-"))) | length') - echo "matched=$matched" - echo "matched=$matched" >> $GITHUB_OUTPUT - - name: Backport Action - if: fromJSON(steps.check_labels.outputs.matched) > 0 - uses: sqren/backport-github-action@v9.5.1 - with: - github_token: ${{ secrets.PROJEN_GITHUB_TOKEN }} - auto_backport_label_prefix: backport-to- diff --git a/.github/workflows/release-1.x.yml b/.github/workflows/release-1.x.yml deleted file mode 100644 index 500bc2f277..0000000000 --- a/.github/workflows/release-1.x.yml +++ /dev/null @@ -1,301 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -name: release-1.x -on: - push: - branches: - - 1.x - workflow_dispatch: {} -concurrency: - group: ${{ github.workflow }} - cancel-in-progress: false -jobs: - release: - runs-on: ubuntu-latest - permissions: - contents: write - outputs: - latest_commit: ${{ steps.git_remote.outputs.latest_commit }} - tag_exists: ${{ steps.check_tag_exists.outputs.exists }} - env: - CI: "true" - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Set git identity - run: |- - git config user.name "github-actions" - git config user.email "github-actions@github.com" - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: lts/* - - name: Install dependencies - run: yarn install --check-files --frozen-lockfile - - name: release:1.x - run: npx projen release:1.x - - name: Check if version has already been tagged - id: check_tag_exists - run: |- - TAG=$(cat dist/releasetag.txt) - ([ ! -z "$TAG" ] && git ls-remote -q --exit-code --tags origin $TAG && (echo "exists=true" >> $GITHUB_OUTPUT)) || (echo "exists=false" >> $GITHUB_OUTPUT) - cat $GITHUB_OUTPUT - - name: Check for new commits - id: git_remote - run: |- - echo "latest_commit=$(git ls-remote origin -h ${{ github.ref }} | cut -f1)" >> $GITHUB_OUTPUT - cat $GITHUB_OUTPUT - - name: Backup artifact permissions - if: ${{ steps.git_remote.outputs.latest_commit == github.sha }} - run: cd dist && getfacl -R . > permissions-backup.acl - continue-on-error: true - - name: Upload artifact - if: ${{ steps.git_remote.outputs.latest_commit == github.sha }} - uses: actions/upload-artifact@v4.4.0 - with: - name: build-artifact - path: dist - overwrite: true - release_github: - name: Publish to GitHub Releases - needs: - - release - - release_npm - - release_maven - - release_pypi - - release_nuget - - release_golang - runs-on: ubuntu-latest - permissions: - contents: write - if: needs.release.outputs.tag_exists != 'true' && needs.release.outputs.latest_commit == github.sha - steps: - - uses: actions/setup-node@v4 - with: - node-version: lts/* - - name: Download build artifacts - uses: actions/download-artifact@v4 - with: - name: build-artifact - path: dist - - name: Restore build artifact permissions - run: cd dist && setfacl --restore=permissions-backup.acl - continue-on-error: true - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_REF: ${{ github.sha }} - 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 - release_npm: - name: Publish to npm - needs: release - runs-on: ubuntu-latest - permissions: - id-token: write - contents: read - if: needs.release.outputs.tag_exists != 'true' && needs.release.outputs.latest_commit == github.sha - steps: - - uses: actions/setup-node@v4 - with: - node-version: lts/* - - name: Download build artifacts - uses: actions/download-artifact@v4 - with: - name: build-artifact - path: dist - - name: Restore build artifact permissions - run: cd dist && setfacl --restore=permissions-backup.acl - continue-on-error: true - - name: Checkout - uses: actions/checkout@v4 - with: - path: .repo - - name: Install Dependencies - run: cd .repo && yarn install --check-files --frozen-lockfile - - name: Extract build artifact - run: tar --strip-components=1 -xzvf dist/js/*.tgz -C .repo - - name: Move build artifact out of the way - run: mv dist dist.old - - name: Create js artifact - run: cd .repo && npx projen package:js - - name: Collect js artifact - run: mv .repo/dist dist - - name: Release - env: - NPM_DIST_TAG: latest-1 - NPM_REGISTRY: registry.npmjs.org - NPM_CONFIG_PROVENANCE: "true" - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx -p publib@latest publib-npm - release_maven: - name: Publish to Maven Central - needs: release - runs-on: ubuntu-latest - permissions: - contents: read - if: needs.release.outputs.tag_exists != 'true' && needs.release.outputs.latest_commit == github.sha - steps: - - uses: actions/setup-java@v4 - with: - distribution: corretto - java-version: "11" - - uses: actions/setup-node@v4 - with: - node-version: lts/* - - name: Download build artifacts - uses: actions/download-artifact@v4 - with: - name: build-artifact - path: dist - - name: Restore build artifact permissions - run: cd dist && setfacl --restore=permissions-backup.acl - continue-on-error: true - - name: Checkout - uses: actions/checkout@v4 - with: - path: .repo - - name: Install Dependencies - run: cd .repo && yarn install --check-files --frozen-lockfile - - name: Extract build artifact - run: tar --strip-components=1 -xzvf dist/js/*.tgz -C .repo - - name: Move build artifact out of the way - run: mv dist dist.old - - name: Create java artifact - run: cd .repo && npx projen package:java - - name: Collect java artifact - run: mv .repo/dist dist - - name: Release - env: - MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} - MAVEN_GPG_PRIVATE_KEY_PASSPHRASE: ${{ secrets.MAVEN_GPG_PRIVATE_KEY_PASSPHRASE }} - MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - MAVEN_STAGING_PROFILE_ID: ${{ secrets.MAVEN_STAGING_PROFILE_ID }} - run: npx -p publib@latest publib-maven - release_pypi: - name: Publish to PyPI - needs: release - runs-on: ubuntu-latest - permissions: - contents: read - if: needs.release.outputs.tag_exists != 'true' && needs.release.outputs.latest_commit == github.sha - steps: - - uses: actions/setup-node@v4 - with: - node-version: lts/* - - uses: actions/setup-python@v5 - with: - python-version: 3.x - - name: Download build artifacts - uses: actions/download-artifact@v4 - with: - name: build-artifact - path: dist - - name: Restore build artifact permissions - run: cd dist && setfacl --restore=permissions-backup.acl - continue-on-error: true - - name: Checkout - uses: actions/checkout@v4 - with: - path: .repo - - name: Install Dependencies - run: cd .repo && yarn install --check-files --frozen-lockfile - - name: Extract build artifact - run: tar --strip-components=1 -xzvf dist/js/*.tgz -C .repo - - name: Move build artifact out of the way - run: mv dist dist.old - - name: Create python artifact - run: cd .repo && npx projen package:python - - name: Collect python artifact - run: mv .repo/dist dist - - name: Release - env: - TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - run: npx -p publib@latest publib-pypi - release_nuget: - name: Publish to NuGet Gallery - needs: release - runs-on: ubuntu-latest - permissions: - contents: read - if: needs.release.outputs.tag_exists != 'true' && needs.release.outputs.latest_commit == github.sha - steps: - - uses: actions/setup-node@v4 - with: - node-version: lts/* - - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 6.x - - name: Download build artifacts - uses: actions/download-artifact@v4 - with: - name: build-artifact - path: dist - - name: Restore build artifact permissions - run: cd dist && setfacl --restore=permissions-backup.acl - continue-on-error: true - - name: Checkout - uses: actions/checkout@v4 - with: - path: .repo - - name: Install Dependencies - run: cd .repo && yarn install --check-files --frozen-lockfile - - name: Extract build artifact - run: tar --strip-components=1 -xzvf dist/js/*.tgz -C .repo - - name: Move build artifact out of the way - run: mv dist dist.old - - name: Create dotnet artifact - run: cd .repo && npx projen package:dotnet - - name: Collect dotnet artifact - run: mv .repo/dist dist - - name: Release - env: - NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} - run: npx -p publib@latest publib-nuget - release_golang: - name: Publish to GitHub Go Module Repository - needs: release - runs-on: ubuntu-latest - permissions: - contents: read - if: needs.release.outputs.tag_exists != 'true' && needs.release.outputs.latest_commit == github.sha - steps: - - uses: actions/setup-node@v4 - with: - node-version: lts/* - - uses: actions/setup-go@v5 - with: - go-version: ^1.18.0 - - name: Download build artifacts - uses: actions/download-artifact@v4 - with: - name: build-artifact - path: dist - - name: Restore build artifact permissions - run: cd dist && setfacl --restore=permissions-backup.acl - continue-on-error: true - - name: Checkout - uses: actions/checkout@v4 - with: - path: .repo - - name: Install Dependencies - run: cd .repo && yarn install --check-files --frozen-lockfile - - name: Extract build artifact - run: tar --strip-components=1 -xzvf dist/js/*.tgz -C .repo - - name: Move build artifact out of the way - run: mv dist dist.old - - name: Create go artifact - run: cd .repo && npx projen package:go - - name: Collect go artifact - run: mv .repo/dist dist - - name: Release - env: - GIT_BRANCH: 2.x - GIT_USER_NAME: cdk8s-automation - GIT_USER_EMAIL: cdk8s-team@amazon.com - GITHUB_TOKEN: ${{ secrets.GO_GITHUB_TOKEN }} - run: npx -p publib@latest publib-golang diff --git a/.github/workflows/upgrade-compiler-dependencies-1.x.yml b/.github/workflows/upgrade-compiler-dependencies-1.x.yml deleted file mode 100644 index c656ae9be7..0000000000 --- a/.github/workflows/upgrade-compiler-dependencies-1.x.yml +++ /dev/null @@ -1,93 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -name: upgrade-compiler-dependencies-1.x -on: - workflow_dispatch: {} - schedule: - - cron: 0 12 * * * -jobs: - upgrade: - name: Upgrade - runs-on: ubuntu-latest - permissions: - contents: read - outputs: - patch_created: ${{ steps.create_patch.outputs.patch_created }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: 1.x - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: lts/* - - name: Install dependencies - run: yarn install --check-files --frozen-lockfile - - name: Upgrade dependencies - run: npx projen upgrade-compiler-dependencies - - name: Find mutations - id: create_patch - run: |- - git add . - git diff --staged --patch --exit-code > repo.patch || echo "patch_created=true" >> $GITHUB_OUTPUT - working-directory: ./ - - name: Upload patch - if: steps.create_patch.outputs.patch_created - uses: actions/upload-artifact@v4.4.0 - with: - name: repo.patch - path: repo.patch - overwrite: true - pr: - name: Create Pull Request - needs: upgrade - runs-on: ubuntu-latest - permissions: - contents: read - if: ${{ needs.upgrade.outputs.patch_created }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: 1.x - - name: Download patch - uses: actions/download-artifact@v4 - with: - name: repo.patch - path: ${{ runner.temp }} - - name: Apply patch - run: '[ -s ${{ runner.temp }}/repo.patch ] && git apply ${{ runner.temp }}/repo.patch || echo "Empty patch. Skipping."' - - name: Set git identity - run: |- - git config user.name "github-actions" - git config user.email "github-actions@github.com" - - name: Create Pull Request - id: create-pr - uses: peter-evans/create-pull-request@v6 - with: - token: ${{ secrets.PROJEN_GITHUB_TOKEN }} - commit-message: |- - chore(deps): upgrade compiler dependencies - - Upgrades project dependencies. See details in [workflow run]. - - [Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - - ------ - - *Automatically created by projen via the "upgrade-compiler-dependencies-1.x" workflow* - branch: github-actions/upgrade-compiler-dependencies-1.x - title: "chore(deps): upgrade compiler dependencies" - labels: auto-approve - body: |- - Upgrades project dependencies. See details in [workflow run]. - - [Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - - ------ - - *Automatically created by projen via the "upgrade-compiler-dependencies-1.x" workflow* - author: github-actions - committer: github-actions - signoff: true diff --git a/.github/workflows/upgrade-configuration-1.x.yml b/.github/workflows/upgrade-configuration-1.x.yml deleted file mode 100644 index af91fdd086..0000000000 --- a/.github/workflows/upgrade-configuration-1.x.yml +++ /dev/null @@ -1,93 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -name: upgrade-configuration-1.x -on: - workflow_dispatch: {} - schedule: - - cron: 0 15 * * * -jobs: - upgrade: - name: Upgrade - runs-on: ubuntu-latest - permissions: - contents: read - outputs: - patch_created: ${{ steps.create_patch.outputs.patch_created }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: 1.x - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: lts/* - - name: Install dependencies - run: yarn install --check-files --frozen-lockfile - - name: Upgrade dependencies - run: npx projen upgrade-configuration - - name: Find mutations - id: create_patch - run: |- - git add . - git diff --staged --patch --exit-code > repo.patch || echo "patch_created=true" >> $GITHUB_OUTPUT - working-directory: ./ - - name: Upload patch - if: steps.create_patch.outputs.patch_created - uses: actions/upload-artifact@v4.4.0 - with: - name: repo.patch - path: repo.patch - overwrite: true - pr: - name: Create Pull Request - needs: upgrade - runs-on: ubuntu-latest - permissions: - contents: read - if: ${{ needs.upgrade.outputs.patch_created }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: 1.x - - name: Download patch - uses: actions/download-artifact@v4 - with: - name: repo.patch - path: ${{ runner.temp }} - - name: Apply patch - run: '[ -s ${{ runner.temp }}/repo.patch ] && git apply ${{ runner.temp }}/repo.patch || echo "Empty patch. Skipping."' - - name: Set git identity - run: |- - git config user.name "github-actions" - git config user.email "github-actions@github.com" - - name: Create Pull Request - id: create-pr - uses: peter-evans/create-pull-request@v6 - with: - token: ${{ secrets.PROJEN_GITHUB_TOKEN }} - commit-message: |- - chore(deps): upgrade configuration - - Upgrades project dependencies. See details in [workflow run]. - - [Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - - ------ - - *Automatically created by projen via the "upgrade-configuration-1.x" workflow* - branch: github-actions/upgrade-configuration-1.x - title: "chore(deps): upgrade configuration" - labels: auto-approve - body: |- - Upgrades project dependencies. See details in [workflow run]. - - [Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - - ------ - - *Automatically created by projen via the "upgrade-configuration-1.x" workflow* - author: github-actions - committer: github-actions - signoff: true diff --git a/.github/workflows/upgrade-dev-dependencies-1.x.yml b/.github/workflows/upgrade-dev-dependencies-1.x.yml deleted file mode 100644 index f0c071df6a..0000000000 --- a/.github/workflows/upgrade-dev-dependencies-1.x.yml +++ /dev/null @@ -1,93 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -name: upgrade-dev-dependencies-1.x -on: - workflow_dispatch: {} - schedule: - - cron: 0 9 * * * -jobs: - upgrade: - name: Upgrade - runs-on: ubuntu-latest - permissions: - contents: read - outputs: - patch_created: ${{ steps.create_patch.outputs.patch_created }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: 1.x - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: lts/* - - name: Install dependencies - run: yarn install --check-files --frozen-lockfile - - name: Upgrade dependencies - run: npx projen upgrade-dev-dependencies - - name: Find mutations - id: create_patch - run: |- - git add . - git diff --staged --patch --exit-code > repo.patch || echo "patch_created=true" >> $GITHUB_OUTPUT - working-directory: ./ - - name: Upload patch - if: steps.create_patch.outputs.patch_created - uses: actions/upload-artifact@v4.4.0 - with: - name: repo.patch - path: repo.patch - overwrite: true - pr: - name: Create Pull Request - needs: upgrade - runs-on: ubuntu-latest - permissions: - contents: read - if: ${{ needs.upgrade.outputs.patch_created }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: 1.x - - name: Download patch - uses: actions/download-artifact@v4 - with: - name: repo.patch - path: ${{ runner.temp }} - - name: Apply patch - run: '[ -s ${{ runner.temp }}/repo.patch ] && git apply ${{ runner.temp }}/repo.patch || echo "Empty patch. Skipping."' - - name: Set git identity - run: |- - git config user.name "github-actions" - git config user.email "github-actions@github.com" - - name: Create Pull Request - id: create-pr - uses: peter-evans/create-pull-request@v6 - with: - token: ${{ secrets.PROJEN_GITHUB_TOKEN }} - commit-message: |- - chore(deps): upgrade dev dependencies - - Upgrades project dependencies. See details in [workflow run]. - - [Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - - ------ - - *Automatically created by projen via the "upgrade-dev-dependencies-1.x" workflow* - branch: github-actions/upgrade-dev-dependencies-1.x - title: "chore(deps): upgrade dev dependencies" - labels: auto-approve - body: |- - Upgrades project dependencies. See details in [workflow run]. - - [Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - - ------ - - *Automatically created by projen via the "upgrade-dev-dependencies-1.x" workflow* - author: github-actions - committer: github-actions - signoff: true diff --git a/.github/workflows/upgrade-runtime-dependencies-1.x.yml b/.github/workflows/upgrade-runtime-dependencies-1.x.yml deleted file mode 100644 index 1127b940a4..0000000000 --- a/.github/workflows/upgrade-runtime-dependencies-1.x.yml +++ /dev/null @@ -1,93 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". - -name: upgrade-runtime-dependencies-1.x -on: - workflow_dispatch: {} - schedule: - - cron: 0 6 * * * -jobs: - upgrade: - name: Upgrade - runs-on: ubuntu-latest - permissions: - contents: read - outputs: - patch_created: ${{ steps.create_patch.outputs.patch_created }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: 1.x - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: lts/* - - name: Install dependencies - run: yarn install --check-files --frozen-lockfile - - name: Upgrade dependencies - run: npx projen upgrade-runtime-dependencies - - name: Find mutations - id: create_patch - run: |- - git add . - git diff --staged --patch --exit-code > repo.patch || echo "patch_created=true" >> $GITHUB_OUTPUT - working-directory: ./ - - name: Upload patch - if: steps.create_patch.outputs.patch_created - uses: actions/upload-artifact@v4.4.0 - with: - name: repo.patch - path: repo.patch - overwrite: true - pr: - name: Create Pull Request - needs: upgrade - runs-on: ubuntu-latest - permissions: - contents: read - if: ${{ needs.upgrade.outputs.patch_created }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: 1.x - - name: Download patch - uses: actions/download-artifact@v4 - with: - name: repo.patch - path: ${{ runner.temp }} - - name: Apply patch - run: '[ -s ${{ runner.temp }}/repo.patch ] && git apply ${{ runner.temp }}/repo.patch || echo "Empty patch. Skipping."' - - name: Set git identity - run: |- - git config user.name "github-actions" - git config user.email "github-actions@github.com" - - name: Create Pull Request - id: create-pr - uses: peter-evans/create-pull-request@v6 - with: - token: ${{ secrets.PROJEN_GITHUB_TOKEN }} - commit-message: |- - chore(deps): upgrade runtime dependencies - - Upgrades project dependencies. See details in [workflow run]. - - [Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - - ------ - - *Automatically created by projen via the "upgrade-runtime-dependencies-1.x" workflow* - branch: github-actions/upgrade-runtime-dependencies-1.x - title: "chore(deps): upgrade runtime dependencies" - labels: auto-approve - body: |- - Upgrades project dependencies. See details in [workflow run]. - - [Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - - ------ - - *Automatically created by projen via the "upgrade-runtime-dependencies-1.x" workflow* - author: github-actions - committer: github-actions - signoff: true diff --git a/.gitignore b/.gitignore index 70289ad46a..0eefe5f213 100644 --- a/.gitignore +++ b/.gitignore @@ -39,9 +39,7 @@ junit.xml /dist/changelog.md /dist/version.txt !/.github/workflows/release.yml -!/.github/workflows/release-1.x.yml !/.github/workflows/upgrade-runtime-dependencies-2.x.yml -!/.github/workflows/upgrade-runtime-dependencies-1.x.yml !/.github/pull_request_template.md !/test/ !/tsconfig.dev.json @@ -63,12 +61,7 @@ tsconfig.json !/.github/workflows/triage.yml !/.github/workflows/stale.yml !/.github/workflows/upgrade-configuration-2.x.yml -!/.github/workflows/upgrade-configuration-1.x.yml !/.github/workflows/upgrade-dev-dependencies-2.x.yml -!/.github/workflows/upgrade-dev-dependencies-1.x.yml !/.github/workflows/upgrade-compiler-dependencies-2.x.yml -!/.github/workflows/upgrade-compiler-dependencies-1.x.yml -!/.backportrc.json -!/.github/workflows/backport.yml !/src/_loadurl.js !/.projenrc.js diff --git a/.npmignore b/.npmignore index b8ccd54d56..bf4f7475d4 100644 --- a/.npmignore +++ b/.npmignore @@ -21,5 +21,4 @@ dist tsconfig.tsbuildinfo /.eslintrc.json !.jsii -.backportrc.json /.gitattributes diff --git a/.projen/files.json b/.projen/files.json index 7c843b89b1..9186566506 100644 --- a/.projen/files.json +++ b/.projen/files.json @@ -1,27 +1,20 @@ { "files": [ - ".backportrc.json", ".eslintrc.json", ".gitattributes", ".github/ISSUE_TEMPLATE/config.yml", ".github/pull_request_template.md", ".github/workflows/auto-approve.yml", ".github/workflows/auto-queue.yml", - ".github/workflows/backport.yml", ".github/workflows/build.yml", ".github/workflows/pull-request-lint.yml", - ".github/workflows/release-1.x.yml", ".github/workflows/release.yml", ".github/workflows/security.yml", ".github/workflows/stale.yml", ".github/workflows/triage.yml", - ".github/workflows/upgrade-compiler-dependencies-1.x.yml", ".github/workflows/upgrade-compiler-dependencies-2.x.yml", - ".github/workflows/upgrade-configuration-1.x.yml", ".github/workflows/upgrade-configuration-2.x.yml", - ".github/workflows/upgrade-dev-dependencies-1.x.yml", ".github/workflows/upgrade-dev-dependencies-2.x.yml", - ".github/workflows/upgrade-runtime-dependencies-1.x.yml", ".github/workflows/upgrade-runtime-dependencies-2.x.yml", ".gitignore", ".projen/deps.json", diff --git a/.projen/tasks.json b/.projen/tasks.json index 98642cbdc7..69676c212b 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -270,31 +270,6 @@ "name": "pre-compile", "description": "Prepare the project for compilation" }, - "release:1.x": { - "name": "release:1.x", - "description": "Prepare a release from \"1.x\" branch", - "env": { - "RELEASE": "true", - "MAJOR": "1" - }, - "steps": [ - { - "exec": "rm -fr dist" - }, - { - "spawn": "bump" - }, - { - "spawn": "build" - }, - { - "spawn": "unbump" - }, - { - "exec": "git diff --ignore-space-at-eol --exit-code" - } - ] - }, "release:2.x": { "name": "release:2.x", "description": "Prepare a release from \"2.x\" branch", diff --git a/.projenrc.js b/.projenrc.js index 30e63214f7..1417d47b6a 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -35,15 +35,7 @@ const project = new Cdk8sTeamJsiiProject({ defaultReleaseBranch: '2.x', majorVersion: 2, - releaseBranches: { - '1.x': { - majorVersion: 1, - npmDistTag: 'latest-1', - }, - }, golangBranch: '2.x', - backport: true, - backportBranches: ['1.x'], jsiiVersion: '^5', }); diff --git a/package.json b/package.json index 7dc30c6b73..3b8bc200e6 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", - "release:1.x": "npx projen release:1.x", "release:2.x": "npx projen release:2.x", "test": "npx projen test", "test:watch": "npx projen test:watch",