From 53ba182067891aa989814dc23a4b9e945dd799a8 Mon Sep 17 00:00:00 2001 From: mixplore <9848598+mixplore@users.noreply.github.com> Date: Wed, 6 May 2026 16:15:42 +0300 Subject: [PATCH 1/7] chore: pnpm migration --- .github/workflows/bump.yml | 6 +++--- .github/workflows/check-version-bump.yml | 8 +++++--- .github/workflows/determine-rc-version.yml | 10 ++++++---- .github/workflows/open-pr.yml | 6 ++++-- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 36d93a7..764d221 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -49,11 +49,11 @@ jobs: - uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} - cache: "npm" - cache-dependency-path: package-lock.json + cache: "pnpm" + cache-dependency-path: pnpm-lock.yaml - name: Install dependencies - run: npm ci --ignore-scripts --prefer-offline --no-audit --no-fund + run: pnpm install --frozen-lockfile --ignore-scripts --prefer-offline - name: Bump version run: ${{ inputs.bump-command }} diff --git a/.github/workflows/check-version-bump.yml b/.github/workflows/check-version-bump.yml index 50a60c3..27d9d7d 100644 --- a/.github/workflows/check-version-bump.yml +++ b/.github/workflows/check-version-bump.yml @@ -55,14 +55,16 @@ jobs: fetch-depth: 0 fetch-tags: true + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} - cache: "npm" - cache-dependency-path: package-lock.json + cache: "pnpm" + cache-dependency-path: pnpm-lock.yaml - name: Install dependencies - run: npm ci --ignore-scripts --prefer-offline --no-audit --no-fund + run: pnpm install --frozen-lockfile --ignore-scripts --prefer-offline - id: check-bump run: | diff --git a/.github/workflows/determine-rc-version.yml b/.github/workflows/determine-rc-version.yml index e89db4a..208ec11 100644 --- a/.github/workflows/determine-rc-version.yml +++ b/.github/workflows/determine-rc-version.yml @@ -31,19 +31,21 @@ jobs: fetch-depth: 0 fetch-tags: true + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} - # Only install minimal dependencies needed for npm version commands - - name: Setup npm - run: npm install -g npm@latest + # Only install minimal dependencies needed for pnpm version commands + - name: Setup pnpm + run: pnpm install -g pnpm@latest # Update package.json version locally (not committed) # This is needed to determine the base version for the RC - name: Ephemeral version bump run: | - npm version "${{ inputs.bump-type }}" --no-git-tag-version + pnpm version "${{ inputs.bump-type }}" --no-git-tag-version # Determine RC version using npm's built-in prerelease functionality - name: Determine RC version diff --git a/.github/workflows/open-pr.yml b/.github/workflows/open-pr.yml index d1ecb2a..1fa0a5e 100644 --- a/.github/workflows/open-pr.yml +++ b/.github/workflows/open-pr.yml @@ -61,11 +61,13 @@ jobs: run: | git checkout -b ${{ inputs.branch-name }} + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} - cache: "npm" - cache-dependency-path: package-lock.json + cache: "pnpm" + cache-dependency-path: pnpm-lock.yaml - name: Make changes run: ${{ inputs.change-command }} From fcc572421c20d3b8f54413187addece4e7abe6a1 Mon Sep 17 00:00:00 2001 From: mixplore <9848598+mixplore@users.noreply.github.com> Date: Mon, 11 May 2026 15:21:47 +0300 Subject: [PATCH 2/7] chore: add pnpm action setup for bump action --- .github/workflows/bump.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 764d221..fe8fb44 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -45,6 +45,8 @@ jobs: ref: ${{ inputs.ref }} fetch-depth: 0 fetch-tags: true + + - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: From 5ed397df480d843c42038e86cf9135b04cf2acfc Mon Sep 17 00:00:00 2001 From: mixplore <9848598+mixplore@users.noreply.github.com> Date: Mon, 11 May 2026 18:04:21 +0300 Subject: [PATCH 3/7] chore: update package-lock to pnpm-lock and use pnpm where it was missed --- .github/workflows/bump.yml | 4 ++-- .github/workflows/determine-rc-version.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index fe8fb44..5eb6a35 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -70,11 +70,11 @@ jobs: git config --local user.name "Version bumpooor" # check if there are changes to commit - if [[ -z "$(git status --porcelain package.json package-lock.json **/package.json **/package-lock.json)" ]]; then + if [[ -z "$(git status --porcelain package.json pnpm-lock.yaml **/package.json **/pnpm-lock.yaml)" ]]; then echo "No changes to commit. Failing bump job." exit 1 fi - git add package.json package-lock.json $(git ls-files "**/package.json" "**/package-lock.json") + git add package.json pnpm-lock.yaml $(git ls-files "**/package.json" "**/pnpm-lock.yaml") git commit -m "chore(release): v${{ steps.get-version.outputs.bumped_version }} [skip ci]" git push origin ${{ inputs.ref }} diff --git a/.github/workflows/determine-rc-version.yml b/.github/workflows/determine-rc-version.yml index 208ec11..cf69cc4 100644 --- a/.github/workflows/determine-rc-version.yml +++ b/.github/workflows/determine-rc-version.yml @@ -57,16 +57,16 @@ jobs: # Check if there are existing RC versions for this base version # Updated regex to match the new format with dot separator (e.g., 2.12.1-rc.0) - latest_rc=$(npm view "${{ inputs.package-name }}" versions --json 2>/dev/null | jq -r '.[]' 2>/dev/null | grep "^$base_version-rc\.[0-9]\+$" | sort -V | tail -n 1 || echo "") + latest_rc=$(pnpm view "${{ inputs.package-name }}" versions --json 2>/dev/null | jq -r '.[]' 2>/dev/null | grep "^$base_version-rc\.[0-9]\+$" | sort -V | tail -n 1 || echo "") echo "Latest RC: $latest_rc" if [ -z "$latest_rc" ]; then # No existing RC for this base version - create the first one - npm version "$base_version-rc.0" --no-git-tag-version + pnpm version "$base_version-rc.0" --no-git-tag-version else # Existing RC found - set the version to match it then increment - npm version "$latest_rc" --no-git-tag-version - npm version prerelease --preid=rc --no-git-tag-version + pnpm version "$latest_rc" --no-git-tag-version + pnpm version prerelease --preid=rc --no-git-tag-version fi rc_version="$(jq -r .version package.json)" From e435b0bad0bf007c3537ba6d0324c90315ec5f4a Mon Sep 17 00:00:00 2001 From: mixplore <9848598+mixplore@users.noreply.github.com> Date: Tue, 12 May 2026 12:49:43 +0300 Subject: [PATCH 4/7] chore: add pnpm action setup version --- .github/workflows/bump.yml | 3 +++ .github/workflows/check-version-bump.yml | 2 ++ .github/workflows/determine-rc-version.yml | 3 +++ .github/workflows/open-pr.yml | 2 ++ 4 files changed, 10 insertions(+) diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 5eb6a35..575424d 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -47,6 +47,9 @@ jobs: fetch-tags: true - uses: pnpm/action-setup@v4 + with: + version: 10.33.0 + - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/check-version-bump.yml b/.github/workflows/check-version-bump.yml index 27d9d7d..af1b9fb 100644 --- a/.github/workflows/check-version-bump.yml +++ b/.github/workflows/check-version-bump.yml @@ -56,6 +56,8 @@ jobs: fetch-tags: true - uses: pnpm/action-setup@v4 + with: + version: 10.33.0 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/determine-rc-version.yml b/.github/workflows/determine-rc-version.yml index cf69cc4..92fc3e2 100644 --- a/.github/workflows/determine-rc-version.yml +++ b/.github/workflows/determine-rc-version.yml @@ -32,6 +32,9 @@ jobs: fetch-tags: true - uses: pnpm/action-setup@v4 + with: + version: 10.33.0 + - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/open-pr.yml b/.github/workflows/open-pr.yml index 1fa0a5e..aba6dba 100644 --- a/.github/workflows/open-pr.yml +++ b/.github/workflows/open-pr.yml @@ -62,6 +62,8 @@ jobs: git checkout -b ${{ inputs.branch-name }} - uses: pnpm/action-setup@v4 + with: + version: 10.33.0 - uses: actions/setup-node@v4 with: From 80fceaa4581d76446d12dad8fa6fb9d06ad72825 Mon Sep 17 00:00:00 2001 From: shark0der Date: Wed, 20 May 2026 17:47:09 +0300 Subject: [PATCH 5/7] chore: remove hardcoded pnpm version - pnpm wil require it to be present in package.json --- .github/workflows/bump.yml | 5 +---- .github/workflows/check-version-bump.yml | 4 +--- .github/workflows/determine-rc-version.yml | 11 ++++------- .github/workflows/open-pr.yml | 4 +--- 4 files changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 575424d..10b8294 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -45,11 +45,8 @@ jobs: ref: ${{ inputs.ref }} fetch-depth: 0 fetch-tags: true - - - uses: pnpm/action-setup@v4 - with: - version: 10.33.0 + - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/check-version-bump.yml b/.github/workflows/check-version-bump.yml index af1b9fb..f526ce7 100644 --- a/.github/workflows/check-version-bump.yml +++ b/.github/workflows/check-version-bump.yml @@ -56,8 +56,6 @@ jobs: fetch-tags: true - uses: pnpm/action-setup@v4 - with: - version: 10.33.0 - uses: actions/setup-node@v4 with: @@ -72,7 +70,7 @@ jobs: run: | echo "Running bump command to check for version changes..." BUMP=$(${{ inputs.bump-command }}) || true - + if [ -n "$BUMP" ] && [[ "$BUMP" != *"No version bump needed"* ]]; then echo "A version bump is needed: '$BUMP'" echo "triggers_bump=true" >> $GITHUB_OUTPUT diff --git a/.github/workflows/determine-rc-version.yml b/.github/workflows/determine-rc-version.yml index 92fc3e2..edaec0f 100644 --- a/.github/workflows/determine-rc-version.yml +++ b/.github/workflows/determine-rc-version.yml @@ -32,9 +32,6 @@ jobs: fetch-tags: true - uses: pnpm/action-setup@v4 - with: - version: 10.33.0 - - uses: actions/setup-node@v4 with: @@ -57,12 +54,12 @@ jobs: # Get the current base version after the bump base_version="$(jq -r .version package.json)" echo "Base version: $base_version" - + # Check if there are existing RC versions for this base version # Updated regex to match the new format with dot separator (e.g., 2.12.1-rc.0) latest_rc=$(pnpm view "${{ inputs.package-name }}" versions --json 2>/dev/null | jq -r '.[]' 2>/dev/null | grep "^$base_version-rc\.[0-9]\+$" | sort -V | tail -n 1 || echo "") echo "Latest RC: $latest_rc" - + if [ -z "$latest_rc" ]; then # No existing RC for this base version - create the first one pnpm version "$base_version-rc.0" --no-git-tag-version @@ -71,8 +68,8 @@ jobs: pnpm version "$latest_rc" --no-git-tag-version pnpm version prerelease --preid=rc --no-git-tag-version fi - + rc_version="$(jq -r .version package.json)" - + echo "RC version: $rc_version" echo "value=$rc_version" >> $GITHUB_OUTPUT diff --git a/.github/workflows/open-pr.yml b/.github/workflows/open-pr.yml index aba6dba..7eeec0c 100644 --- a/.github/workflows/open-pr.yml +++ b/.github/workflows/open-pr.yml @@ -62,8 +62,6 @@ jobs: git checkout -b ${{ inputs.branch-name }} - uses: pnpm/action-setup@v4 - with: - version: 10.33.0 - uses: actions/setup-node@v4 with: @@ -103,7 +101,7 @@ jobs: base: '${{ inputs.base-branch }}', body: '${{ inputs.pr-body }}' }); - + console.log(`Pull request created: ${response.data.html_url}`); } catch (error) { core.setFailed(`Failed to create pull request: ${error.message}`); From a9ee6084ec845d4bfc7a9b69a87a6f61f8bcb5b8 Mon Sep 17 00:00:00 2001 From: shark0der Date: Wed, 20 May 2026 19:24:17 +0300 Subject: [PATCH 6/7] chore: remove extraneous `pnpm install -g pnpm@latest` --- .github/workflows/determine-rc-version.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/determine-rc-version.yml b/.github/workflows/determine-rc-version.yml index edaec0f..1306946 100644 --- a/.github/workflows/determine-rc-version.yml +++ b/.github/workflows/determine-rc-version.yml @@ -37,10 +37,6 @@ jobs: with: node-version: ${{ inputs.node-version }} - # Only install minimal dependencies needed for pnpm version commands - - name: Setup pnpm - run: pnpm install -g pnpm@latest - # Update package.json version locally (not committed) # This is needed to determine the base version for the RC - name: Ephemeral version bump From 7ade7666f354609f09140df62922767a71089808 Mon Sep 17 00:00:00 2001 From: shark0der Date: Wed, 20 May 2026 19:33:41 +0300 Subject: [PATCH 7/7] fix: add --no-git-checks to pnpm version calls for pnpm 11 compat pnpm 11's native version command checks git working tree state even with --no-git-tag-version. Since we do multiple ephemeral version bumps without committing, --no-git-checks is needed. --- .github/workflows/determine-rc-version.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/determine-rc-version.yml b/.github/workflows/determine-rc-version.yml index 1306946..e2b44fc 100644 --- a/.github/workflows/determine-rc-version.yml +++ b/.github/workflows/determine-rc-version.yml @@ -41,7 +41,7 @@ jobs: # This is needed to determine the base version for the RC - name: Ephemeral version bump run: | - pnpm version "${{ inputs.bump-type }}" --no-git-tag-version + pnpm version "${{ inputs.bump-type }}" --no-git-tag-version --no-git-checks # Determine RC version using npm's built-in prerelease functionality - name: Determine RC version @@ -58,11 +58,11 @@ jobs: if [ -z "$latest_rc" ]; then # No existing RC for this base version - create the first one - pnpm version "$base_version-rc.0" --no-git-tag-version + pnpm version "$base_version-rc.0" --no-git-tag-version --no-git-checks else # Existing RC found - set the version to match it then increment - pnpm version "$latest_rc" --no-git-tag-version - pnpm version prerelease --preid=rc --no-git-tag-version + pnpm version "$latest_rc" --no-git-tag-version --no-git-checks + pnpm version prerelease --preid=rc --no-git-tag-version --no-git-checks fi rc_version="$(jq -r .version package.json)"