fix(ci): change Chromatic build to be triggered when frontend `package.json` is edited instead of lockfile (#15793)

* fix(ci): correct invalid condition for skipping Chromatic build

* fix: change to be triggered when frontend `package.json` is edited instead of lockfile

* chore: disable automatic rebase of frontend Renovate PRs
This commit is contained in:
zyoshoka 2025-04-27 10:49:23 +09:00 committed by GitHub
parent 6a69e4180b
commit d91a4e3dec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 6 deletions

View File

@ -15,11 +15,7 @@ on:
jobs: jobs:
build: build:
# Chromatic is not likely to be available for fork repositories, so we disable for fork repositories. # Chromatic is not likely to be available for fork repositories, so we disable for fork repositories.
# Neither Dependabot nor Renovate will change the actual behavior for components. if: github.repository == 'misskey-dev/misskey'
if: >-
github.repository == 'misskey-dev/misskey' &&
startsWith(github.head_ref, 'refs/heads/dependabot/') != true &&
startsWith(github.head_ref, 'refs/heads/renovate/') != true
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:

View File

@ -55,7 +55,7 @@ await fs.readFile(
'../../locales/ja-JP.yml', '../../locales/ja-JP.yml',
'assets/**', 'assets/**',
'public/**', 'public/**',
'../../pnpm-lock.yaml', 'package.json',
]).length ]).length
) { ) {
return; return;

View File

@ -38,6 +38,8 @@
'packages/misskey-reversi/**/package.json', 'packages/misskey-reversi/**/package.json',
'packages/sw/**/package.json', 'packages/sw/**/package.json',
], ],
// prevent wastage of Chromatic snapshots
rebaseWhen: 'never',
}, },
{ {
groupName: '[misskey-js] Update dependencies', groupName: '[misskey-js] Update dependencies',