diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f01be1c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: + push: + branches: ["main", "renovate/*"] + tags: ["*"] + pull_request: + branches: ["main"] + workflow_dispatch: + +jobs: + check: + if: startsWith(github.ref, 'refs/tags/') != true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + - run: npm ci + - run: npm run typecheck diff --git a/nuxt.config.ts b/nuxt.config.ts index c526ef3..6e13d3d 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -3,9 +3,6 @@ export default defineNuxtConfig({ compatibilityDate: "2024-04-03", devtools: { enabled: true }, modules: ["@nuxtjs/tailwindcss"], - typescript: { - typeCheck: true, - }, runtimeConfig: { nanapiUrl: "", nanapiClientUsername: "", diff --git a/package.json b/package.json index 30a849b..2579039 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "dev": "nuxt dev", "generate": "nuxt generate", "preview": "nuxt preview", - "postinstall": "nuxt prepare" + "postinstall": "nuxt prepare", + "typecheck": "nuxt typecheck" }, "dependencies": { "@fullcalendar/core": "6.1.15",