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

chore: configure release-please for monorepo #3602

Merged
merged 22 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from 19 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
7 changes: 7 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"apps/cowswap-frontend": "1.54.2",
"apps/explorer": "2.26.0",
"libs/permit-utils": "0.0.2",
"libs/widget-lib": "0.2.1",
"libs/widget-react": "0.2.3"
}
File renamed without changes.
1 change: 1 addition & 0 deletions apps/cowswap-frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@cowprotocol/cowswap",
"version": "1.54.2",
"description": "CoW Swap",
"main": "index.js",
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion apps/cowswap-frontend/src/cow-react/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as Sentry from '@sentry/react'
import { SENTRY_IGNORED_GP_QUOTE_ERRORS } from 'api/gnosisProtocol/errors/QuoteError'

// eslint-disable-next-line @nx/enforce-module-boundaries
import pkg from '../../../../package.json'
import pkg from '../../package.json'

const SENTRY_DSN = process.env.REACT_APP_SENTRY_DSN
const SENTRY_TRACES_SAMPLE_RATE = process.env.REACT_APP_SENTRY_TRACES_SAMPLE_RATE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useWalletInfo } from '@cowprotocol/wallet'
import styled from 'styled-components/macro'

// eslint-disable-next-line @nx/enforce-module-boundaries
import pkg from '../../../../../../package.json'
import pkg from '../../../../package.json'

function _getContractsUrls(chainId: ChainId, contractAddressMap: typeof GP_SETTLEMENT_CONTRACT_ADDRESS) {
const contractAddress = contractAddressMap[chainId]
Expand Down
2 changes: 1 addition & 1 deletion apps/cowswap-frontend/src/serviceWorker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { DocumentRoute } from './document'
import { toURL } from './utils'

// eslint-disable-next-line @nx/enforce-module-boundaries
import pkg from '../../../../package.json'
import pkg from '../../package.json'

const WEB_VERSION = pkg.version

Expand Down
8 changes: 5 additions & 3 deletions libs/permit-utils/src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ const PERMIT_PK = '0x4dae303b820e9878cafeb0f84edcc015e8a81b1bff510e824e4fc27544e

export const PERMIT_SIGNER = new Wallet(PERMIT_PK)

const DEFAULT_GAS_LIMIT = 55_000

export const PERMIT_GAS_LIMIT_MIN: Record<SupportedChainId, number> = {
[SupportedChainId.MAINNET]: 55_000,
[SupportedChainId.GNOSIS_CHAIN]: 55_000,
[SupportedChainId.SEPOLIA]: 55_000,
[SupportedChainId.MAINNET]: DEFAULT_GAS_LIMIT,
[SupportedChainId.GNOSIS_CHAIN]: DEFAULT_GAS_LIMIT,
[SupportedChainId.SEPOLIA]: DEFAULT_GAS_LIMIT,
[SupportedChainId.GOERLI]: 36_000,
}

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cowswap",
"version": "1.54.2",
"description": "CoW Swap",
"name": "cowswap-monorepo",
"version": "2.0.0",
"description": "CoW Swap Protocol",
shoom3301 marked this conversation as resolved.
Show resolved Hide resolved
"main": "index.js",
"author": "",
"license": "ISC",
Expand Down
46 changes: 46 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"last-release-sha": "dbf70fcb64ad3255b34779821721fc7b2dab0c31",
"packages": {
"apps/cowswap-frontend": {
"changelog-path": "CHANGELOG.md",
"release-type": "node",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false
},
"apps/explorer": {
"changelog-path": "CHANGELOG.md",
alfetopito marked this conversation as resolved.
Show resolved Hide resolved
"release-type": "node",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false
},
"libs/permit-utils": {
"changelog-path": "CHANGELOG.md",
"release-type": "node",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false
},
"libs/widget-lib": {
"changelog-path": "CHANGELOG.md",
"release-type": "node",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false
},
"libs/widget-react": {
"changelog-path": "CHANGELOG.md",
"release-type": "node",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}
Loading