diff --git a/.changeset/popular-bikes-allow.md b/.changeset/popular-bikes-allow.md new file mode 100644 index 00000000000..70d5df6d2e4 --- /dev/null +++ b/.changeset/popular-bikes-allow.md @@ -0,0 +1,5 @@ +--- +"fuels": patch +--- + +chore: regenerate proxy artifacts during release diff --git a/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxy.ts b/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxy.ts index 5e081340c7e..5bf0ca489f2 100644 --- a/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxy.ts +++ b/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxy.ts @@ -5,7 +5,7 @@ /* eslint-disable @typescript-eslint/consistent-type-imports */ /* - Fuels version: 0.94.6 + Fuels version: 0.94.7 */ import { Contract, Interface } from "../../../../.."; diff --git a/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxyFactory.ts b/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxyFactory.ts index b850b814c43..b27fdc1adfc 100644 --- a/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxyFactory.ts +++ b/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxyFactory.ts @@ -5,7 +5,7 @@ /* eslint-disable @typescript-eslint/consistent-type-imports */ /* - Fuels version: 0.94.6 + Fuels version: 0.94.7 */ import { Contract, ContractFactory, decompressBytecode } from "../../../../.."; diff --git a/packages/fuels/src/cli/commands/deploy/proxy/types/common.d.ts b/packages/fuels/src/cli/commands/deploy/proxy/types/common.d.ts index e8e92cdbc98..fe3b2168e48 100644 --- a/packages/fuels/src/cli/commands/deploy/proxy/types/common.d.ts +++ b/packages/fuels/src/cli/commands/deploy/proxy/types/common.d.ts @@ -5,7 +5,7 @@ /* eslint-disable @typescript-eslint/consistent-type-imports */ /* - Fuels version: 0.94.6 + Fuels version: 0.94.7 */ /** diff --git a/packages/fuels/src/cli/commands/deploy/proxy/types/index.ts b/packages/fuels/src/cli/commands/deploy/proxy/types/index.ts index b7b5d4d56ab..f3266230287 100644 --- a/packages/fuels/src/cli/commands/deploy/proxy/types/index.ts +++ b/packages/fuels/src/cli/commands/deploy/proxy/types/index.ts @@ -5,7 +5,7 @@ /* eslint-disable @typescript-eslint/consistent-type-imports */ /* - Fuels version: 0.94.6 + Fuels version: 0.94.7 */ export { Src14OwnedProxy } from './Src14OwnedProxy'; diff --git a/scripts/changeset/changeset-version-with-docs.ts b/scripts/changeset/changeset-version-with-docs.ts index 381f9f95786..71fbd2d8aef 100644 --- a/scripts/changeset/changeset-version-with-docs.ts +++ b/scripts/changeset/changeset-version-with-docs.ts @@ -7,22 +7,34 @@ import { error } from 'console'; try { /** * This is the base command that has to run always. - * Release CIs were failing when there were only empty changesets because we weren't running this command. - * See more here: https://github.com/FuelLabs/fuels-ts/pull/1847 + * + * Release CIs were failing when there were only empty changesets + * because we weren't running this command. + * + * See more here: + * https://github.com/FuelLabs/fuels-ts/pull/1847 */ execSync(`changeset version`); // Invoke versions' prebuild script (will rewrite version files if needed) execSync(`pnpm -C packages/versions prebuild`); + // Invoke fuels' build:proxy script (will rewrite header versions in generated files) + execSync(`pnpm -C packages/fuels build:proxy`); + + // Checks if the commands above generated git changes const versionsFilePath = `packages/versions/src/lib/getBuiltinVersions.ts`; + const proxyDirPath = `packages/fuels/src/cli/commands/deploy/proxy`; const versionsChanged = !!execSync(`git status --porcelain ${versionsFilePath}`) .toString() .trim(); - if (versionsChanged) { - execSync(`git add ${versionsFilePath}`); + const proxyChanged = !!execSync(`git status --porcelain ${proxyDirPath}`).toString().trim(); + + // If they did, add and commit the changes + if (versionsChanged || proxyChanged) { + execSync(`git add ${versionsFilePath} ${proxyDirPath}`); execSync(`git commit -m"ci(scripts): update versions"`); } } catch (err) {