Skip to content

Commit af16ce1

Browse files
committed
bug #2679 [CI] Fix version bump for npm packages (Kocal)
This PR was merged into the 2.x branch. Discussion ---------- [CI] Fix version bump for npm packages | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | no <!-- required for new features --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT The workflow https://github.com/symfony/ux/actions/runs/14282744086/job/40034193882 failed because Yarn wasn't able to tag a new version for each packages for idk what reasons. Here we just want something that mutate `version` field from `packages.json` without any operations, let's use `npm version --no-workspaces-update --no-git-tag-version` Commits ------- 689dff9 [CI] Fix version bump for npm packages
2 parents ed705f3 + 689dff9 commit af16ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-on-npm.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- run: yarn --immutable
3333

3434
- name: Update version of JS packages
35-
run: yarn workspaces foreach -A version --immediate "${{ env.VERSION }}"
35+
run: yarn workspaces foreach -pA exec "npm version ${{ env.VERSION }} --no-git-tag-version --no-workspaces-update"
3636

3737
- name: Commit changes
3838
run: |

0 commit comments

Comments
 (0)