From 74bd1085ad7b5417b801c1820cbcdbb34de7f41b Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 14 Aug 2023 15:09:42 +0200 Subject: [PATCH 1/2] feat: add ci --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9be163..4d128d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,9 +11,13 @@ on: - main jobs: + test-node: + uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@main release: uses: bgd-labs/github-workflows/.github/workflows/release.yml@main + needs: test-node release-node: uses: bgd-labs/github-workflows/.github/workflows/release-node.yml@main + needs: test-node secrets: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} From bc32373cde684b8a29e436dce3ddbb1a4f6baf0b Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 14 Aug 2023 15:19:35 +0200 Subject: [PATCH 2/2] chore: alpha releases --- .github/workflows/test-release-alpha.yml | 17 +++++++++ .../{release.yml => test-release.yml} | 3 +- package.json | 36 ++++++++++--------- 3 files changed, 38 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/test-release-alpha.yml rename .github/workflows/{release.yml => test-release.yml} (91%) diff --git a/.github/workflows/test-release-alpha.yml b/.github/workflows/test-release-alpha.yml new file mode 100644 index 0000000..81a0649 --- /dev/null +++ b/.github/workflows/test-release-alpha.yml @@ -0,0 +1,17 @@ +name: Test & alpha release + +concurrency: + group: ${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + +on: + pull_request: + +jobs: + test: + uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@main + release-node-alpha: + uses: bgd-labs/github-workflows/.github/workflows/release-node-alpha.yml@main + needs: test + secrets: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/test-release.yml similarity index 91% rename from .github/workflows/release.yml rename to .github/workflows/test-release.yml index 4d128d9..f2c09ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/test-release.yml @@ -1,11 +1,10 @@ -name: Head branch workflow +name: Test & release concurrency: group: ${{ github.workflow }} cancel-in-progress: true on: - pull_request: push: branches: - main diff --git a/package.json b/package.json index 27421d2..aa66795 100644 --- a/package.json +++ b/package.json @@ -2,12 +2,7 @@ "name": "@bgd-labs/aave-cli", "version": "0.0.19", "description": "A cli to perform various aave governance related tasks", - "main": "./dist/index.js", - "module": "./dist/index.js", "private": false, - "bin": { - "aave-cli": "dist/cli.js" - }, "scripts": { "build": "tsup", "test": "vitest", @@ -17,13 +12,12 @@ "type": "git", "url": "git+https://github.com/bgd-labs/report-engine.git" }, - "author": "", - "license": "ISC", + "author": "BGD labs", + "license": "MIT", "bugs": { "url": "https://github.com/bgd-labs/report-engine/issues" }, "homepage": "https://github.com/bgd-labs/report-engine#readme", - "type": "module", "devDependencies": { "@types/node-fetch": "^2.6.4", "@types/object-hash": "^3.0.3", @@ -32,15 +26,25 @@ "typescript": "^5.1.6", "vitest": "^0.34.1" }, + "type": "module", + "main": "./dist/index.cjs", + "module": "./dist/index.js", "exports": { - "require": "./dist/index.cjs", - "node": "./dist/index.js", - "imports": "./dist/index.js", - "import": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "default": "./dist/index.js" + ".": { + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" + }, + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "types": "./dist/AaveAddressBook.d.cts", + "default": "./dist/index.cjs" + } + }, + "bin": { + "aave-cli": "dist/cli.cjs" }, "publishConfig": { "access": "public"