From 7141735664555849e60b47bb07d7adfa3777c8c4 Mon Sep 17 00:00:00 2001 From: Huskydog9988 <39809509+Huskydog9988@users.noreply.github.com> Date: Fri, 4 Apr 2025 18:51:01 -0400 Subject: [PATCH 1/6] fix: auth prerender --- nuxt.config.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 83c7cdd..3fd8add 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 }, }, From 8d88728c990e71831fd6be2d8199c4b9ffd86c08 Mon Sep 17 00:00:00 2001 From: Huskydog9988 <39809509+Huskydog9988@users.noreply.github.com> Date: Fri, 4 Apr 2025 18:52:34 -0400 Subject: [PATCH 2/6] feat: typecheck in dev --- nuxt.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index 3fd8add..da666df 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -44,6 +44,8 @@ export default defineNuxtConfig({ }, typescript: { + typeCheck: true, + tsConfig: { compilerOptions: { verbatimModuleSyntax: false, From b6d05a6d092f10e9a251d031764d18b414462405 Mon Sep 17 00:00:00 2001 From: Huskydog9988 <39809509+Huskydog9988@users.noreply.github.com> Date: Fri, 4 Apr 2025 18:59:18 -0400 Subject: [PATCH 3/6] ci: don't mark nightly container as latest --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66ab064..13687ca 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: @@ -52,7 +52,7 @@ 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 From 7df175b7476ebd2662e55cff9d20dee1c4541438 Mon Sep 17 00:00:00 2001 From: Huskydog9988 <39809509+Huskydog9988@users.noreply.github.com> Date: Fri, 4 Apr 2025 19:03:38 -0400 Subject: [PATCH 4/6] ci: update actions versions --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 13687ca..33fb7b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} - 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 @@ -56,7 +56,7 @@ jobs: - 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 From 2be0e2f88c8d8ecfdb8dba222d9284fe653dcec4 Mon Sep 17 00:00:00 2001 From: Huskydog9988 <39809509+Huskydog9988@users.noreply.github.com> Date: Fri, 4 Apr 2025 19:15:05 -0400 Subject: [PATCH 5/6] ci: add typecheck ci --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml 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/package.json b/package.json index 3c0962b..2dcb010 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare", - "typecheck": "nuxi typecheck" + "typecheck": "nuxt typecheck" }, "dependencies": { "@drop-oss/droplet": "^0.7.2", From 931913b83694171353dacdbfe885041d88053773 Mon Sep 17 00:00:00 2001 From: Huskydog9988 <39809509+Huskydog9988@users.noreply.github.com> Date: Fri, 4 Apr 2025 19:19:33 -0400 Subject: [PATCH 6/6] ci: drop PAT_TOKEN --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33fb7b2..c5d791d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4 with: submodules: true - token: ${{ secrets.PAT_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} - name: Set up QEMU uses: docker/setup-qemu-action@v3