diff --git a/.github/workflows/pr-release.yaml b/.github/workflows/pr-release.yaml index 2f82f0d49b6..62869f40c2a 100644 --- a/.github/workflows/pr-release.yaml +++ b/.github/workflows/pr-release.yaml @@ -45,8 +45,6 @@ jobs: shell: bash run: | pnpm changeset:format-for-github-packages - pnpm changeset:next - git add .changeset/fuel-labs-ci.md pnpm changeset version --snapshot pr-${{ github.event.pull_REQUEST.NUMBER }} changetsets=$(pnpm changeset publish --tag pr-${{ github.event.pull_REQUEST.NUMBER }}) published_version=$(echo "$changetsets" | grep -oP '@\K([0-9]+\.){2}[0-9]+-pr-${{ github.event.pull_REQUEST.NUMBER }}-\d+' | head -1) diff --git a/scripts/changeset/changeset-format-for-github-packages.mts b/scripts/changeset/changeset-format-for-github-packages.mts index 77c8340606e..7016f14dba8 100644 --- a/scripts/changeset/changeset-format-for-github-packages.mts +++ b/scripts/changeset/changeset-format-for-github-packages.mts @@ -53,3 +53,10 @@ const changesetConfig = { }; writeFileSync(CHANGESET_CONFIG_PATH, JSON.stringify(changesetConfig, null, 2)); execSync(`git add ${CHANGESET_CONFIG_PATH}`); + +/** + * Add a changeset for the next `fuels` version + */ +const output = `---\n"${GITHUB_ORGANIZATION_SCOPE}/fuels": patch\n---\n\nincremental\n`; +writeFileSync(".changeset/fuel-labs-ci.md", output); +execSync(`git add .changeset/fuel-labs-ci.md`);