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:
parent
6a69e4180b
commit
d91a4e3dec
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue