Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ jobs:
is-high-risk-environment: false
- name: Lint
run: yarn lint
- name: Validate changelogs
run: yarn changelog:validate
- name: Require clean working directory
shell: bash
run: |
Expand Down
1 change: 0 additions & 1 deletion packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"scripts": {
"build": "yarn workspaces filter --include 'packages/examples/packages/**' --parallel --no-private run build",
"build:clean": "yarn clean && yarn build",
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/example-snaps",
"changelog:validates": "yarn workspaces foreach --worktree --parallel --verbose run changelog:validate",
"clean": "yarn workspaces foreach --worktree --parallel --verbose --no-private run clean",
"lint": "yarn workspaces foreach --worktree --parallel --verbose --interlaced --no-private run lint && yarn lint:dependencies",
Expand Down
1 change: 0 additions & 1 deletion packages/examples/packages/invoke-snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"scripts": {
"build": "yarn workspaces foreach --worktree --parallel --verbose run build",
"build:clean": "yarn clean && yarn build",
"changelog:validate": "../../../../scripts/validate-changelog.sh @metamask/invoke-snap-example-snap",
"clean": "yarn workspaces foreach --worktree --parallel --verbose run clean",
"lint": "yarn workspaces foreach --worktree --parallel --verbose --interlaced run lint && yarn lint:dependencies",
"lint:ci": "yarn lint:eslint && yarn lint:misc --check",
Expand Down
26 changes: 12 additions & 14 deletions yarn.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -148,20 +148,18 @@ module.exports = defineConfig({

// All non-root package must have valid "changelog:update" and
// "changelog:validate" scripts.
expectWorkspaceField(
workspace,
'scripts.changelog:validate',
`${getRelativePath(workspace, 'scripts/validate-changelog.sh')} ${
workspace.manifest.name
}`,
);
expectWorkspaceField(
workspace,
'scripts.changelog:validate',
`${getRelativePath(workspace, 'scripts/validate-changelog.sh')} ${
workspace.manifest.name
}`,
);
if (
workspace.cwd !== 'packages/examples' &&
workspace.cwd !== 'packages/examples/packages/invoke-snap'
) {
expectWorkspaceField(
workspace,
'scripts.changelog:validate',
`${getRelativePath(workspace, 'scripts/validate-changelog.sh')} ${
workspace.manifest.name
}`,
);
}

// All non-root packages must have a valid "since-latest-release" script.
expectWorkspaceField(
Expand Down
Loading