Skip to content

Commit 0a5d3be

Browse files
authored
ci: actually automate updating rule version metadata, for real this time (#7430)
1 parent 7139aad commit 0a5d3be

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.changeset/fluffy-jeans-cheat.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ jobs:
5555
fi
5656
scripts/update-next-version.sh --replace "$NEW_VERSION"
5757
58+
# The changeset action does a hard reset, so we need to save
59+
# the changes in a stash so they can be popped later in the `version` command
60+
- name: Stash changes
61+
run: git stash push -u -m __automated-changes
62+
5863
- name: Create Release Pull Request
5964
id: changesets-action
6065
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"check": "cargo biome-cli-dev check",
88
"ci": "cargo biome-cli-dev ci",
99
"//": "when we create the release PR, we need to update the lock file with the new versions",
10-
"version": "changeset version && pnpm i --lockfile-only"
10+
"version": "changeset version && pnpm i --lockfile-only && (git stash list | grep -q '__automated-changes' && git -c advice.skippedCherryPicks=false stash pop || echo 'No stash to pop')"
1111
},
1212
"keywords": [],
1313
"author": "Biome Developers and Contributors",

0 commit comments

Comments
 (0)