Skip to content

Commit

Permalink
ci: validate build artifact changes (#7122)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Dec 26, 2024
1 parent 6d23f4b commit f4406f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,16 @@ jobs:
- name: Build
run: pnpm run build

# check uncommited LICENSE.md, auto-imports.d.ts, etc...
- name: Check stale build artifacts
run: git diff --exit-code

- name: Lint
run: pnpm run lint

- name: Typecheck
run: pnpm run typecheck

- name: Diff LICENSE.md
run: |
if ! git diff --exit-code packages/vitest/LICENSE.md; then
echo "::error::LICENSE.md has changed. Please commit the updated LICENSE.md file after the build."
exit 1
fi
# From https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions
- name: Check workflow files
run: |
Expand Down
10 changes: 10 additions & 0 deletions packages/ui/client/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ declare global {
const useResizing: typeof import("./composables/browser")["useResizing"]
const useRoute: typeof import('vue-router')['useRoute']
const useRouter: typeof import('vue-router')['useRouter']
const useSSRWidth: typeof import('@vueuse/core')['useSSRWidth']
const useScreenOrientation: typeof import('@vueuse/core')['useScreenOrientation']
const useScreenSafeArea: typeof import('@vueuse/core')['useScreenSafeArea']
const useScriptTag: typeof import('@vueuse/core')['useScriptTag']
Expand Down Expand Up @@ -344,4 +345,13 @@ declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
import('vue')
// @ts-ignore
export type { ViewportSize } from './composables/browser'
import('./composables/browser')
// @ts-ignore
export type { ModuleType, ModuleNode, ModuleLink, ModuleGraph, ModuleGraphController, ModuleGraphConfig, ModuleLabelItem } from './composables/module-graph'
import('./composables/module-graph')
// @ts-ignore
export type { Params } from './composables/params'
import('./composables/params')
}

0 comments on commit f4406f1

Please sign in to comment.