From 48494a0dbd952e0c7f6edf819b17b52f519f0ca3 Mon Sep 17 00:00:00 2001 From: "fragment-pr-bot[bot]" <228685+fragment-pr-bot[bot]@users.noreply.github.com> Date: Tue, 1 Jul 2025 16:01:53 +0000 Subject: [PATCH 01/10] 1.2.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3183711..4982c95 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "engines": { "node": ">=18.0.0" }, - "version": "1.2.0", + "version": "1.2.1", "author": "Fragment Foundries Inc", "license": "Apache-2.0", "files": [ From 12a4e36ada994f63a8f3afe827bcefb3a9a37c3e Mon Sep 17 00:00:00 2001 From: Vigneshwer Vaidyanathan Date: Tue, 1 Jul 2025 12:10:24 -0400 Subject: [PATCH 02/10] Update postversion script --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 4982c95..098225b 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "start-docs": "node scripts/hostDocs.js", "gen-docs": "yarn typedoc --plugin typedoc-plugin-markdown --entryPointStrategy expand ./src --exclude ./src/bin.ts --exclude ./src/getToken.ts --entryPointStrategy expand ./generated/generated.ts", "prepack": "yarn build", + "postversion": "yarn gen-version", "fragment-node-client-codegen": "node --loader ts-node/esm --no-warnings=ExperimentalWarning src/bin.ts", "prepublishOnly": "yarn build" }, From c91dac4f4f624b683457f1c9cd7587e41e3d5ebe Mon Sep 17 00:00:00 2001 From: Vigneshwer Vaidyanathan Date: Tue, 1 Jul 2025 12:14:38 -0400 Subject: [PATCH 03/10] Dynamic branch/PR name --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad2da5b..a17f126 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,13 +43,14 @@ jobs: command: yarn - name: Bump version + id: bump-version run: | gh auth status gh auth setup-git git config --global user.name "fragment-pr-bot[bot]" git config --global user.email "228685+fragment-pr-bot[bot]@users.noreply.github.com" echo "Creating NPM release ${{ inputs.type }}" - npm version ${{ inputs.type }} + echo "version=$(npm version ${{ inputs.type }})" >> $GITHUB_OUTPUT env: GH_TOKEN: ${{ steps.generate-token.outputs.token }} @@ -57,7 +58,8 @@ jobs: uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v4 with: token: ${{ steps.generate-token.outputs.token }} - title: Bump SDK version (${{ inputs.type }}) + title: Bump SDK version (${{ steps.bump-version.version }}) + branch: create-pull-request/${{ inputs.type }}-${{ steps.bump-version.version }} base: 'dev' body: > This PR is auto-generated by github action. From 441216a5d1a6f0a1c525289e7a5148ae87643cbc Mon Sep 17 00:00:00 2001 From: Vigneshwer Vaidyanathan Date: Tue, 1 Jul 2025 12:18:35 -0400 Subject: [PATCH 04/10] update release spec --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a17f126..f12e37c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,7 @@ jobs: git config --global user.name "fragment-pr-bot[bot]" git config --global user.email "228685+fragment-pr-bot[bot]@users.noreply.github.com" echo "Creating NPM release ${{ inputs.type }}" - echo "version=$(npm version ${{ inputs.type }})" >> $GITHUB_OUTPUT + echo "version=$(npm version ${{ inputs.type }})\n" >> $GITHUB_OUTPUT env: GH_TOKEN: ${{ steps.generate-token.outputs.token }} From b3a51b15805ba2cf6e7d906df1c9cfa7b81fea1d Mon Sep 17 00:00:00 2001 From: Vigneshwer Vaidyanathan Date: Tue, 1 Jul 2025 12:27:08 -0400 Subject: [PATCH 05/10] kk, this should work --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f12e37c..49614af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,8 @@ jobs: git config --global user.name "fragment-pr-bot[bot]" git config --global user.email "228685+fragment-pr-bot[bot]@users.noreply.github.com" echo "Creating NPM release ${{ inputs.type }}" - echo "version=$(npm version ${{ inputs.type }})\n" >> $GITHUB_OUTPUT + npm version ${{ inputs.type }} + echo "version=$(npm pkg get version | tr -d '\"')" >> $GITHUB_OUTPUT env: GH_TOKEN: ${{ steps.generate-token.outputs.token }} From 5b1cb5f3b1ad2714b67f887d85f3d3be56566247 Mon Sep 17 00:00:00 2001 From: Vigneshwer Vaidyanathan Date: Tue, 1 Jul 2025 12:30:20 -0400 Subject: [PATCH 06/10] echo before printing it out --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49614af..2a1e84a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,7 +51,8 @@ jobs: git config --global user.email "228685+fragment-pr-bot[bot]@users.noreply.github.com" echo "Creating NPM release ${{ inputs.type }}" npm version ${{ inputs.type }} - echo "version=$(npm pkg get version | tr -d '\"')" >> $GITHUB_OUTPUT + echo "version=$(npm pkg get version | tr -d '\"')" + echo "version=$(npm pkg get version | tr -d '\"')\n" >> $GITHUB_OUTPUT env: GH_TOKEN: ${{ steps.generate-token.outputs.token }} From 0366357015460cca548bd23f1edc9e01e1d60916 Mon Sep 17 00:00:00 2001 From: Vigneshwer Vaidyanathan Date: Tue, 1 Jul 2025 12:32:19 -0400 Subject: [PATCH 07/10] Reference the output correctly --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a1e84a..20da651 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,8 +60,8 @@ jobs: uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v4 with: token: ${{ steps.generate-token.outputs.token }} - title: Bump SDK version (${{ steps.bump-version.version }}) - branch: create-pull-request/${{ inputs.type }}-${{ steps.bump-version.version }} + title: Bump SDK version (${{ steps.bump-version.outputs.version }}) + branch: create-pull-request/${{ inputs.type }}-${{ steps.bump-version.outputs.version }} base: 'dev' body: > This PR is auto-generated by github action. From 2ac430a56a444257d4e98b5dc5d141e262e4e86c Mon Sep 17 00:00:00 2001 From: Vigneshwer Vaidyanathan Date: Tue, 1 Jul 2025 12:33:54 -0400 Subject: [PATCH 08/10] remove newline --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 20da651..3b4913c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,7 +52,7 @@ jobs: echo "Creating NPM release ${{ inputs.type }}" npm version ${{ inputs.type }} echo "version=$(npm pkg get version | tr -d '\"')" - echo "version=$(npm pkg get version | tr -d '\"')\n" >> $GITHUB_OUTPUT + echo "version=$(npm pkg get version | tr -d '\"')" >> $GITHUB_OUTPUT env: GH_TOKEN: ${{ steps.generate-token.outputs.token }} From d4540df6f596f5f8c173836d18e515f6c6d345a7 Mon Sep 17 00:00:00 2001 From: Vigneshwer Vaidyanathan Date: Tue, 1 Jul 2025 12:37:43 -0400 Subject: [PATCH 09/10] Rebuild before committing --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b4913c..fdc3660 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,6 +51,7 @@ jobs: git config --global user.email "228685+fragment-pr-bot[bot]@users.noreply.github.com" echo "Creating NPM release ${{ inputs.type }}" npm version ${{ inputs.type }} + yarn build echo "version=$(npm pkg get version | tr -d '\"')" echo "version=$(npm pkg get version | tr -d '\"')" >> $GITHUB_OUTPUT env: From 28ef42cc155ea0923e64f3c9d0db5b38d7d49e6f Mon Sep 17 00:00:00 2001 From: Vigneshwer Vaidyanathan Date: Tue, 1 Jul 2025 12:43:02 -0400 Subject: [PATCH 10/10] Make publish dispatchable --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 16d9cfa..80fcd7d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,6 +2,7 @@ name: Publish Package to npmjs on: release: types: [published] + workflow_dispatch: jobs: build: