diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index bd6ba670c..4363f7749 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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: @@ -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 diff --git a/package-lock.json b/package-lock.json index 472470cb6..0435f3a2e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "defi-adapters-monorepo", - "version": "0.13.0", + "version": "0.14.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "defi-adapters-monorepo", - "version": "0.13.0", + "version": "0.14.0", "license": "MIT", "workspaces": [ "packages/*" @@ -15568,7 +15568,7 @@ }, "packages/adapters-library": { "name": "@metamask-institutional/defi-adapters", - "version": "0.13.0", + "version": "0.14.0", "license": "MIT", "dependencies": { "better-sqlite3": "^11.2.1", @@ -15610,7 +15610,7 @@ }, "packages/dev-ui": { "name": "defi-adapters-dev-ui", - "version": "0.13.0", + "version": "0.14.0", "license": "MIT", "devDependencies": { "@heroicons/react": "^2.1.3", diff --git a/package.json b/package.json index d31c98b16..966407bd5 100644 --- a/package.json +++ b/package.json @@ -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", @@ -49,4 +49,4 @@ "nodemon": "^3.1.0", "typescript": "^5.4.5" } -} \ No newline at end of file +} diff --git a/packages/adapters-library/package.json b/packages/adapters-library/package.json index fd171d574..0f17b2388 100644 --- a/packages/adapters-library/package.json +++ b/packages/adapters-library/package.json @@ -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", @@ -70,4 +70,4 @@ "pino": "^8.15.0", "zod": "^3.22.4" } -} \ No newline at end of file +} diff --git a/packages/dev-ui/package.json b/packages/dev-ui/package.json index 2446d8ef8..61a13e2b6 100644 --- a/packages/dev-ui/package.json +++ b/packages/dev-ui/package.json @@ -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",