Skip to content

Commit

Permalink
0.14.0 (#328)
Browse files Browse the repository at this point in the history
* 0.14.0

* publish action changes
  • Loading branch information
bergarces authored Sep 25, 2024
1 parent d3f55a6 commit 97d012b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 54 deletions.
47 changes: 2 additions & 45 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,13 @@
name: Tag and publish package
name: Publish package

on:
workflow_dispatch:
inputs:
semver:
description: 'The semver to increase (major, minor, patch, premajor, preminor, prepatch, prerelease)'
required: true

jobs:
tag-and-publish:
runs-on: ubuntu-latest
steps:
- name: Validate input
run: |
semver="${{ github.event.inputs.semver }}"
valid_values=("major" "minor" "patch" "premajor" "preminor" "prepatch" "prerelease")
if ! [[ " ${valid_values[@]} " =~ " ${semver} " ]]; then
echo "Invalid semver input: ${semver}"
exit 1
fi
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-tags: true
token: ${{ secrets.DEFI_ADAPTERS_SERVICE_ACCOUNT_GITHUB_PAT }}
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
Expand All @@ -34,32 +17,6 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Test
run: npm run test:cov
env:
DEFI_ADAPTERS_PROVIDER_ETHEREUM: ${{ secrets.ETHEREUM_PROVIDER_URL }}
DEFI_ADAPTERS_PROVIDER_OPTIMISM: ${{ secrets.OPTIMISM_PROVIDER_URL }}
DEFI_ADAPTERS_PROVIDER_BSC: ${{ secrets.BSC_PROVIDER_URL }}
DEFI_ADAPTERS_PROVIDER_POLYGON: ${{ secrets.POLYGON_PROVIDER_URL }}
DEFI_ADAPTERS_PROVIDER_FANTOM: ${{ secrets.FANTOM_PROVIDER_URL }}
DEFI_ADAPTERS_PROVIDER_BASE: ${{ secrets.BASE_PROVIDER_URL }}
DEFI_ADAPTERS_PROVIDER_ARBITRUM: ${{ secrets.ARBITRUM_PROVIDER_URL }}
DEFI_ADAPTERS_PROVIDER_AVALANCHE: ${{ secrets.AVALANCHE_PROVIDER_URL }}
DEFI_ADAPTERS_PROVIDER_LINEA: ${{ secrets.LINEA_PROVIDER_URL }}
DEFI_ADAPTERS_LOG_LEVEL: warn

- name: Configure Git User
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}"@users.noreply.github.com
- name: Update package version
run: npm version ${{ github.event.inputs.semver }} --workspaces && git add **/package.json; npm version ${{ github.event.inputs.semver }} --include-workspace-root --force

- name: Push new version tag to main branch
run: git push origin main --tags

- name: Build
run: npm run build

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "defi-adapters-monorepo",
"version": "0.13.0",
"version": "0.14.0",
"description": "Defi adapters monorepo for MMI Dashboard",
"author": "MMI Team",
"license": "MIT",
Expand Down Expand Up @@ -49,4 +49,4 @@
"nodemon": "^3.1.0",
"typescript": "^5.4.5"
}
}
}
4 changes: 2 additions & 2 deletions packages/adapters-library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask-institutional/defi-adapters",
"version": "0.13.0",
"version": "0.14.0",
"description": "Defi adapters for MMI Dashboard",
"author": "MMI Team",
"license": "MIT",
Expand Down Expand Up @@ -70,4 +70,4 @@
"pino": "^8.15.0",
"zod": "^3.22.4"
}
}
}
2 changes: 1 addition & 1 deletion packages/dev-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "defi-adapters-dev-ui",
"version": "0.13.0",
"version": "0.14.0",
"description": "Defi adapters UI for development",
"author": "MMI Team",
"license": "MIT",
Expand Down

0 comments on commit 97d012b

Please sign in to comment.