diff --git a/.github/workflows/pr-test.yaml b/.github/workflows/pr-test.yaml index 55970449a9..f17231ada5 100644 --- a/.github/workflows/pr-test.yaml +++ b/.github/workflows/pr-test.yaml @@ -40,6 +40,7 @@ jobs: yarn install - name: Verify changesets + if: github.actor != 'janus-idp[bot]' run: | yarn changeset status --since=${{ github.event.pull_request.base.sha }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 653dc2e1dc..6b8d751a68 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,6 +8,10 @@ on: - 1.2.x - release-[0-9].[0-9]* +env: + TURBO_SCM_BASE: ${{ github.event.before }} + TURBO_SCM_HEAD: ${{ github.sha }} + # enforce only one release action per release branch at a time concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/package.json b/package.json index 93b01c6fd0..7e8706951c 100644 --- a/package.json +++ b/package.json @@ -27,9 +27,10 @@ "new": "janus-cli new --do-not-edit-packages", "prepare": "husky install", "export-dynamic": "turbo run export-dynamic", - "versions:bump": "backstage-cli versions:bump && find . -name 'package.json' ! -path '*/node_modules/*' -exec sed -i -e '/devDependencies/,/\\\\}/{ s/\\\"\\\\^/\\\"/; }' {} ; && yarn install && yarn run export-dynamic --no-cache -- -- --clean", - "packages:version": "changeset version && yarn install", - "packages:publish": "turbo build --concurrency=75% --filter=@janus-idp/* && changeset publish" + "export-dynamic:clean": "turbo run export-dynamic -- -- --clean", + "versions:bump": "backstage-cli versions:bump && find . -name 'package.json' ! -path '*/node_modules/*' -exec sed -i -e '/devDependencies/,/\\\\}/{ s/\\\"\\\\^/\\\"/; }' {} ; && yarn install && turbo run export-dynamic:clean", + "packages:version": "changeset version && yarn install && turbo run export-dynamic:clean --concurrency=75% --affected && git add .\\*package.json .\\*yarn.lock", + "packages:publish": "turbo run build --concurrency=75% --filter=@janus-idp/* && changeset publish" }, "workspaces": { "packages": [