diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df34a40..5c99068 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,7 +57,7 @@ jobs: uses: backstage/changesets-action@291bfc1f76d1dcfbf967f5810dc0423592eae09a # v2.3.1 with: title: Version Packages - version: yarn changeset version + version: yarn release skipRootChangelogUpdate: true env: GITHUB_TOKEN: ${{ secrets.KUSIONSTACK_BOT_TOKEN }} diff --git a/package.json b/package.json index 3294344..68cfc02 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "lint": "backstage-cli repo lint --since origin/main", "lint:all": "backstage-cli repo lint", "prettier:check": "prettier --check .", - "new": "backstage-cli new --scope internal" + "new": "backstage-cli new --scope internal", + "release": "changeset version && yarn prettier --write '{packages,plugins}/*/{package.json,CHANGELOG.md}' && yarn install" }, "workspaces": { "packages": [