diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 75691f0..9d766c7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -108,59 +108,3 @@ jobs: run: cd .repo && npx projen package:js - name: Collect js Artifact run: mv .repo/dist dist - package-python: - needs: build - runs-on: ubuntu-latest - permissions: {} - if: "! needs.build.outputs.self_mutation_happened" - steps: - - uses: actions/setup-node@v3 - with: - node-version: 16.x - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - name: Download build artifacts - uses: actions/download-artifact@v3 - with: - name: build-artifact - path: dist - - name: Restore build artifact permissions - run: cd dist && setfacl --restore=permissions-backup.acl - continue-on-error: true - - name: Prepare Repository - run: mv dist .repo - - name: Install Dependencies - run: cd .repo && yarn install --check-files --frozen-lockfile - - name: Create python artifact - run: cd .repo && npx projen package:python - - name: Collect python Artifact - run: mv .repo/dist dist - package-dotnet: - needs: build - runs-on: ubuntu-latest - permissions: {} - if: "! needs.build.outputs.self_mutation_happened" - steps: - - uses: actions/setup-node@v3 - with: - node-version: 16.x - - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 3.x - - name: Download build artifacts - uses: actions/download-artifact@v3 - with: - name: build-artifact - path: dist - - name: Restore build artifact permissions - run: cd dist && setfacl --restore=permissions-backup.acl - continue-on-error: true - - name: Prepare Repository - run: mv dist .repo - - name: Install Dependencies - run: cd .repo && yarn install --check-files --frozen-lockfile - - name: Create dotnet artifact - run: cd .repo && npx projen package:dotnet - - name: Collect dotnet Artifact - run: mv .repo/dist dist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7370764..0ac463f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,72 +107,3 @@ jobs: NPM_REGISTRY: registry.npmjs.org NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx -p publib@latest publib-npm - release_pypi: - name: Publish to PyPI - needs: release - runs-on: ubuntu-latest - permissions: - contents: read - if: needs.release.outputs.latest_commit == github.sha - steps: - - uses: actions/setup-node@v3 - with: - node-version: 16.x - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - name: Download build artifacts - uses: actions/download-artifact@v3 - with: - name: build-artifact - path: dist - - name: Restore build artifact permissions - run: cd dist && setfacl --restore=permissions-backup.acl - continue-on-error: true - - name: Prepare Repository - run: mv dist .repo - - name: Install Dependencies - run: cd .repo && yarn install --check-files --frozen-lockfile - - 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.latest_commit == github.sha - steps: - - uses: actions/setup-node@v3 - with: - node-version: 16.x - - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 3.x - - name: Download build artifacts - uses: actions/download-artifact@v3 - with: - name: build-artifact - path: dist - - name: Restore build artifact permissions - run: cd dist && setfacl --restore=permissions-backup.acl - continue-on-error: true - - name: Prepare Repository - run: mv dist .repo - - name: Install Dependencies - run: cd .repo && yarn install --check-files --frozen-lockfile - - 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 diff --git a/.mergify.yml b/.mergify.yml index b4e099d..154b39f 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -8,8 +8,6 @@ queue_rules: - -label~=(do-not-merge) - status-success=build - status-success=package-js - - status-success=package-python - - status-success=package-dotnet pull_request_rules: - name: Automatic merge on approval and successful build actions: @@ -26,5 +24,3 @@ pull_request_rules: - -label~=(do-not-merge) - status-success=build - status-success=package-js - - status-success=package-python - - status-success=package-dotnet diff --git a/.projen/tasks.json b/.projen/tasks.json index 2bfcfa1..f579fb6 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -163,21 +163,6 @@ "steps": [ { "spawn": "package:js" - }, - { - "spawn": "package:python" - }, - { - "spawn": "package:dotnet" - } - ] - }, - "package:dotnet": { - "name": "package:dotnet", - "description": "Create dotnet language bindings", - "steps": [ - { - "exec": "jsii-pacmak -v --target dotnet" } ] }, @@ -190,15 +175,6 @@ } ] }, - "package:python": { - "name": "package:python", - "description": "Create python language bindings", - "steps": [ - { - "exec": "jsii-pacmak -v --target python" - } - ] - }, "post-compile": { "name": "post-compile", "description": "Runs after successful compilation", diff --git a/.projenrc.ts b/.projenrc.ts index c0e1874..575502e 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -5,21 +5,12 @@ const project = new AwlsringAwsCdkLibrary({ cdkVersion: '2.55.0', name: 'cdk-aws-discord-notifiers', repositoryUrl: 'https://github.com/awlsring/cdk-aws-discord-notifiers.git', - description: 'A package that vends constructs to notify about AWS resources via discord', - keywords: [ - 'discord', - 'notification', - 'aws', - 'billing', - ], - deps: [ - 'constructs@^10.1.52', - ], - devDeps: [ - 'constructs@10.1.52', - 'esbuild', - ], - publish: true, + description: + 'A package that vends constructs to notify about AWS resources via discord', + keywords: ['discord', 'notification', 'aws', 'billing'], + deps: ['constructs@^10.1.52'], + devDeps: ['constructs@10.1.52', 'esbuild'], + publish: false, bundledDeps: [ 'pino', '@types/pino', @@ -30,4 +21,4 @@ const project = new AwlsringAwsCdkLibrary({ '@aws-sdk/client-cost-explorer', ], }); -project.synth(); \ No newline at end of file +project.synth(); diff --git a/package.json b/package.json index 64559ef..030656c 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,7 @@ "eslint": "npx projen eslint", "package": "npx projen package", "package-all": "npx projen package-all", - "package:dotnet": "npx projen package:dotnet", "package:js": "npx projen package:js", - "package:python": "npx projen package:python", "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", @@ -101,9 +99,6 @@ ], "main": "lib/index.js", "license": "Apache-2.0", - "publishConfig": { - "access": "public" - }, "version": "0.0.0", "jest": { "testMatch": [ @@ -149,16 +144,7 @@ "stability": "stable", "jsii": { "outdir": "dist", - "targets": { - "python": { - "distName": "cdk-aws-discord-notifiers", - "module": "cdk_aws-discord-notifiers" - }, - "dotnet": { - "namespace": "Awlsring.CdkAwsDiscordNotifiers", - "packageId": "Awlsring.CdkAwsDiscordNotifiers" - } - }, + "targets": {}, "tsc": { "outDir": "lib", "rootDir": "src"