diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7451884 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: [pull_request, push] + +jobs: + typecheck: + name: Typecheck + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 + with: + submodules: true + + - name: Setup Node.js environment + uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: "yarn" + + - name: Install dependencies + run: yarn install --immutable --network-timeout 1000000 + + - name: Typecheck + run: yarn typecheck diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66ab064..c5d791d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: types: [published] # This can be used to automatically publish nightlies at UTC nighttime schedule: - - cron: '0 2 * * *' # run at 2 AM UTC + - cron: "0 2 * * *" # run at 2 AM UTC jobs: web: @@ -16,22 +16,22 @@ jobs: contents: read steps: - name: Check out the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true - token: ${{ secrets.PAT_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug - name: Log in to the Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -39,7 +39,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: | ghcr.io/drop-OSS/drop @@ -52,11 +52,11 @@ jobs: type=ref,event=pr type=sha # set latest tag for stable releases - type=raw,value=latest,enable=${{ github.event.release.prerelease == false }} + type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.release.prerelease == false }} - name: Build and push image id: build-and-push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: . push: true diff --git a/nuxt.config.ts b/nuxt.config.ts index 4a0639c..bd9f406 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -24,9 +24,7 @@ export default defineNuxtConfig({ }, routeRules: { - "/auth/signin": { prerender: true }, - "/signout": { prerender: true }, - + "/auth/**": { prerender: true }, "/api/**": { cors: true }, }, @@ -46,6 +44,8 @@ export default defineNuxtConfig({ }, typescript: { + typeCheck: true, + tsConfig: { compilerOptions: { verbatimModuleSyntax: false,