Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ci for alpha releases #45

Merged
merged 2 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/test-release-alpha.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: Head branch workflow
name: Test & release

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

on:
pull_request:
push:
branches:
- 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 }}
36 changes: 20 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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"
Expand Down