Chris Estreich 7 месяцев назад
Родитель
Сommit
22431f06f4
4 измененных файлов с 6 добавлено и 23 удалено
  1. 0 2
      .changeset/changelog-config.js
  2. 5 0
      .changeset/little-pillows-type.md
  3. 0 19
      .github/workflows/changeset-release.yml
  4. 1 2
      package.json

+ 0 - 2
.changeset/changelog-config.js

@@ -1,5 +1,3 @@
-// Half-works to simplify the format but needs 'overwrite_changeset_changelog.py' in GHA to finish formatting
-
 const getReleaseLine = async (changeset) => {
 const getReleaseLine = async (changeset) => {
 	const [firstLine] = changeset.summary
 	const [firstLine] = changeset.summary
 		.split("\n")
 		.split("\n")

+ 5 - 0
.changeset/little-pillows-type.md

@@ -0,0 +1,5 @@
+---
+"roo-cline": patch
+---
+
+Fix changeset (again)

+ 0 - 19
.github/workflows/changeset-release.yml

@@ -100,25 +100,6 @@ jobs:
           fetch-depth: 0
           fetch-depth: 0
           ref: ${{ steps.checkout-ref.outputs.git_ref }}
           ref: ${{ steps.checkout-ref.outputs.git_ref }}
 
 
-      # Get current and previous versions to edit changelog entry
-      - name: Get version
-        id: get_version
-        run: |
-          VERSION=$(git show HEAD:package.json | jq -r '.version')
-          echo "version=$VERSION" >> $GITHUB_OUTPUT
-          PREV_VERSION=$(git show origin/main:package.json | jq -r '.version')
-          echo "prev_version=$PREV_VERSION" >> $GITHUB_OUTPUT
-          echo "version=$VERSION"
-          echo "prev_version=$PREV_VERSION"
-
-      # Update CHANGELOG.md with proper format
-      - name: Update Changelog Format
-        if: ${{ !contains(github.event.pull_request.labels.*.name, 'changelog-ready') }}
-        env:
-          VERSION: ${{ steps.get_version.outputs.version }}
-          PREV_VERSION: ${{ steps.get_version.outputs.prev_version }}
-        run: python .github/scripts/overwrite_changeset_changelog.py
-
       # Commit and push changelog updates
       # Commit and push changelog updates
       - name: Push Changelog updates
       - name: Push Changelog updates
         if: ${{ !contains(github.event.pull_request.labels.*.name, 'changelog-ready') }}
         if: ${{ !contains(github.event.pull_request.labels.*.name, 'changelog-ready') }}

+ 1 - 2
package.json

@@ -14,8 +14,7 @@
 		"clean": "turbo clean --log-order grouped --output-logs new-only && rimraf dist out bin .vite-port .turbo",
 		"clean": "turbo clean --log-order grouped --output-logs new-only && rimraf dist out bin .vite-port .turbo",
 		"build": "pnpm --filter roo-cline vsix",
 		"build": "pnpm --filter roo-cline vsix",
 		"build:nightly": "pnpm --filter @roo-code/vscode-nightly vsix",
 		"build:nightly": "pnpm --filter @roo-code/vscode-nightly vsix",
-		"publish": "pnpm build && changeset publish && pnpm install --frozen-lockfile",
-		"changeset:version": "changeset version && pnpm install --frozen-lockfile",
+		"changeset:version": "cp CHANGELOG.md src/CHANGELOG.md && changeset version && cp -vf src/CHANGELOG.md .",
 		"knip": "pnpm --filter @roo-code/build build && knip --include files",
 		"knip": "pnpm --filter @roo-code/build build && knip --include files",
 		"update-contributors": "node scripts/update-contributors.js"
 		"update-contributors": "node scripts/update-contributors.js"
 	},
 	},