Skip to content

fix(ci): repair theme publish version bump and commit-back - #2660

Merged
barjin merged 1 commit into
masterfrom
fix/theme-publish-version-bump
Jun 19, 2026
Merged

fix(ci): repair theme publish version bump and commit-back#2660
barjin merged 1 commit into
masterfrom
fix/theme-publish-version-bump

Conversation

@barjin

@barjin barjin commented Jun 19, 2026

Copy link
Copy Markdown
Member

Fixes the failing the publish-theme workflow (see failing run)

The Commit the new theme version step has been silently failing since the repo migrated to pnpm (as there is no package-lock.json file anymore.

@github-actions github-actions Bot added this to the 143rd sprint - Tooling team milestone Jun 19, 2026
@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Jun 19, 2026
@apify-service-account

apify-service-account commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

🗑️ Preview for this PR was deleted.

The publish-theme workflow was failing at "Bump the theme version" with
ERR_PNPM_UNCLEAN_WORKING_TREE.

Root cause: the "Commit the new theme version" step has been silently
failing since the repo migrated to pnpm because it tried to `git add`
apify-docs-theme/package-lock.json, which doesn't exist in a pnpm repo
(it's pnpm-lock.yaml). With continue-on-error: true, the job stayed green
while the bumped version was never committed back, so the repo's
package.json drifted behind npm (1.0.248 vs 1.0.251). `pnpm pkg set
version=$LATEST` then writes a diff, dirtying the tree, and `pnpm version
patch` refuses to run on a dirty tree.

Fixes:
- Compute the next patch version with `semver -i patch` and write it via
  `pnpm pkg set`, avoiding pnpm's clean-tree check entirely so the bump is
  robust even if the committed version drifts.
- Drop the non-existent package-lock.json from the commit-back `add` list
  and remove continue-on-error so this never silently breaks again.
- Re-sync the committed theme version (1.0.251) with npm latest.
@barjin
barjin force-pushed the fix/theme-publish-version-bump branch from 4902975 to bcb2da8 Compare June 19, 2026 09:12
@barjin
barjin requested review from B4nan and janbuchar June 19, 2026 09:17
@barjin barjin added the adhoc Ad-hoc unplanned task added during the sprint. label Jun 19, 2026
@barjin
barjin requested a review from szaganek June 19, 2026 09:52
@barjin
barjin merged commit 37e2158 into master Jun 19, 2026
19 of 20 checks passed
@barjin
barjin deleted the fix/theme-publish-version-bump branch June 19, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants