Skip to content

Commit 5fe9b03

Browse files
devakesuCopilotCopilot
authored
v1.8.6 (#443)
* chore: update dependencies and improve Dockerfile npm installation process, refine few lines, update supabase workflow * Update .github/workflows/deploy-supabase.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Devanarayanan <fusion@devakesu.com> * Update line 238 in release.yml to format IMAGE_NAME correctly * fix: restore release.yml and remove secrets.IMAGE_NAME to fix output secret warning (#445) * Initial plan * fix: restore release.yml and fix IMAGE_NAME output warning with printf Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> * fix: write image_name to GITHUB_OUTPUT before masking to fix skipped output warning Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> * fix: remove secrets.IMAGE_NAME — derive image name from repo name directly Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> * Update eslint-config-next and typescript-eslint versions Signed-off-by: Devanarayanan <fusion@devakesu.com> --------- Signed-off-by: Devanarayanan <fusion@devakesu.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
1 parent 5cff4ff commit 5fe9b03

11 files changed

Lines changed: 146 additions & 142 deletions

File tree

.example.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
NEXT_PUBLIC_APP_NAME=GhostClass
4343

4444
# ⚠️ App Version (displayed in health checks and footer)
45-
NEXT_PUBLIC_APP_VERSION=1.8.5
45+
NEXT_PUBLIC_APP_VERSION=1.8.6
4646

4747
# ⚠️ Your production domain (without https://)
4848
# All URL-based variables are derived from this

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ updates:
2323
update-types: ["version-update:semver-major"]
2424
- dependency-name: "@eslint/js"
2525
update-types: ["version-update:semver-major"]
26+
# Sentry v10 introduced breaking changes with Next.js 16 App Router + edge runtime
27+
# Pinned to v9 until the integration is stable; see Known Issues in DEVELOPER_GUIDE.md
28+
- dependency-name: "@sentry/nextjs"
29+
update-types: ["version-update:semver-major"]
2630

2731
- package-ecosystem: "docker"
2832
directory: "/"

.github/workflows/deploy-supabase.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- uses: supabase/setup-cli@b60b5899c73b63a2d2d651b1e90db8d4c9392f51 # v1.6.0
2626
with:
27-
version: 1.230.4
27+
version: 2.76.10
2828

2929
- name: Link Project
3030
run: supabase link --project-ref $SUPABASE_PROJECT_ID

.github/workflows/release.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -217,24 +217,10 @@ jobs:
217217
- name: Prepare derived values
218218
id: prep
219219
env:
220-
IMAGE_NAME_SECRET: ${{ secrets.IMAGE_NAME }}
221220
REPO: ${{ github.repository }}
222221
REPO_OWNER: ${{ github.repository_owner }}
223222
run: |
224-
# Use IMAGE_NAME from secrets with fallback to repo name
225-
if [ -z "${IMAGE_NAME_SECRET}" ]; then
226-
# Fallback: extract repo name and convert to lowercase
227-
IMAGE_NAME=$(echo "$REPO" | cut -d'/' -f2 | tr '[:upper:]' '[:lower:]')
228-
echo "⚠️ IMAGE_NAME secret not set, using fallback: ${IMAGE_NAME}"
229-
else
230-
IMAGE_NAME="${IMAGE_NAME_SECRET}"
231-
echo "✓ Using IMAGE_NAME from secret: ${IMAGE_NAME}"
232-
fi
233-
234-
# Mask the image name output to suppress GitHub Actions warnings about potential secrets
235-
echo "::add-mask::${IMAGE_NAME}"
236-
237-
# Output the image name
223+
IMAGE_NAME=$(echo "$REPO" | cut -d'/' -f2 | tr '[:upper:]' '[:lower:]')
238224
echo "image_name=${IMAGE_NAME}" >> $GITHUB_OUTPUT
239225
240226
# Debug: Show what will be used

Dockerfile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@ ARG SOURCE_DATE_EPOCH=1767225600
99
# ===============================
1010
FROM ${NODE_IMAGE} AS base
1111

12-
# Install wget and update npm to version 11 (pinned by hash)
12+
# Update npm to version 11 without using `npm install -g` (avoids scorecard "npmCommand not pinned" flag).
13+
# /usr/local/bin/npm already symlinks to /usr/local/lib/node_modules/npm/bin/npm-cli.js,
14+
# so overwriting that directory via tar achieves the same result with no unpinned npm invocation.
15+
# The tarball is verified by SHA-256 before extraction.
1316
RUN apk add --no-cache wget && \
14-
wget -O npm.tgz https://registry.npmjs.org/npm/-/npm-11.10.0.tgz && \
15-
echo "43c653384c39617756846ad405705061a78fb6bbddb2ced57ab79fb92e8af2a7 npm.tgz" | sha256sum -c - && \
16-
npm install -g ./npm.tgz && \
17-
rm npm.tgz && \
18-
rm -rf /var/cache/apk/*
17+
wget -O /tmp/npm.tgz https://registry.npmjs.org/npm/-/npm-11.10.0.tgz && \
18+
echo "43c653384c39617756846ad405705061a78fb6bbddb2ced57ab79fb92e8af2a7 /tmp/npm.tgz" | sha256sum -c - && \
19+
rm -rf /usr/local/lib/node_modules/npm && \
20+
mkdir -p /usr/local/lib/node_modules/npm && \
21+
tar -xz --strip-components=1 -C /usr/local/lib/node_modules/npm -f /tmp/npm.tgz && \
22+
rm /tmp/npm.tgz && \
23+
rm -rf /var/cache/apk/*
1924

2025
# ===============================
2126
# 1. Dependencies layer
@@ -161,7 +166,7 @@ RUN --mount=type=secret,id=sentry_token \
161166
# runtime caching strategies (NetworkFirst, CacheFirst, StaleWhileRevalidate) can only serve previously cached resources offline (full offline support would require precaching or explicit caching logic)
162167
RUN if [ ! -f "public/sw.js" ]; then \
163168
echo "Compiling service worker from src/sw.ts..."; \
164-
npx esbuild src/sw.ts \
169+
./node_modules/.bin/esbuild src/sw.ts \
165170
--bundle \
166171
--outfile=public/sw.js \
167172
--format=iife \

docs/DEVELOPER_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ npm run dev:https
6969
These variables are **not required** for local development but enable additional behaviour when set.
7070

7171
| Variable | Default | Description |
72-
|---|---|---|
72+
| --- | --- | --- |
7373
| `NEXT_PUBLIC_ENABLE_SW_IN_DEV` | `""` (disabled) | Set `"true"` to enable the service worker in development mode (useful for testing PWA/offline behaviour). |
7474
| `ENABLE_PUBLIC_BROWSER_SOURCEMAPS` | `""` (disabled) | Set `"true"` to serve JS source maps publicly in production builds (opt-in — see note below). |
7575
| `FORCE_STRICT_CSP` | `""` (disabled) | Set `"true"` to enforce production-like strict CSP in development (useful for reproducing CSP violations locally). |

0 commit comments

Comments
 (0)