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:
build:
# 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' &&
startsWith(github.head_ref, 'refs/heads/dependabot/') != true &&
startsWith(github.head_ref, 'refs/heads/renovate/') != true
if: github.repository == 'misskey-dev/misskey'
runs-on: ubuntu-latest
env:

View File

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

View File

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