fix: remove orphaned @node-rs/argon2 and restore CI workflow
The hash-wasm package now handles both argon2id and bcrypt hashing, making @node-rs/argon2 unused. Leaving it in package.json causes native binary compilation failures on deploy servers (EACCES/build errors), which breaks the deploy pipeline entirely. Also restore .gitea/workflows/ci.yaml so CI pipelines run again.
This commit is contained in:
1 parent
1e661a2b41
commit
e08e366266
3 files changed
+41
-183
No files matched your search
@@ -0,0 +1,41 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: shell
|
||||||
|
steps:
|
||||||
|
- name: Typecheck, lint, and test
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
WORK="$(mktemp -d /var/tmp/epicnext-ci.XXXXXX)"
|
||||||
|
cleanup() { rm -rf "${WORK}"; }
|
||||||
|
trap cleanup EXIT
|
||||||
|
|
||||||
|
echo "--- CI checks (${WORK}) ---"
|
||||||
|
git clone --depth 50 \
|
||||||
|
/docker/gitea/gitea/git/repositories/remco/epicnext-cms.git \
|
||||||
|
"${WORK}"
|
||||||
|
cd "${WORK}"
|
||||||
|
|
||||||
|
REF="${{ gitea.sha }}"
|
||||||
|
if [ -z "${REF}" ]; then
|
||||||
|
echo "ERROR: missing gitea.sha" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
git fetch --depth 50 origin "${REF}"
|
||||||
|
git checkout -f "${REF}"
|
||||||
|
|
||||||
|
export SKIP_ENV_VALIDATION=1
|
||||||
|
export ARGON2_MEMORY_SIZE=1024
|
||||||
|
export ARGON2_ITERATIONS=1
|
||||||
|
export BCRYPT_ROUNDS=4
|
||||||
|
pnpm install --frozen-lockfile
|
||||||
|
pnpm prisma:generate
|
||||||
|
pnpm biome:lint
|
||||||
|
pnpm typecheck
|
||||||
|
pnpm test
|
||||||
|
echo "--- CI checks passed ---"
|
||||||
@@ -41,7 +41,6 @@
|
|||||||
"@dnd-kit/sortable": "^10.0.0",
|
"@dnd-kit/sortable": "^10.0.0",
|
||||||
"@dnd-kit/utilities": "^3.2.2",
|
"@dnd-kit/utilities": "^3.2.2",
|
||||||
"@hookform/resolvers": "^5.5.7",
|
"@hookform/resolvers": "^5.5.7",
|
||||||
"@node-rs/argon2": "^2.0.2",
|
|
||||||
"@prisma/adapter-mariadb": "^7.9.1",
|
"@prisma/adapter-mariadb": "^7.9.1",
|
||||||
"@prisma/client": "^7.9.1",
|
"@prisma/client": "^7.9.1",
|
||||||
"@sentry/nextjs": "^10.68.0",
|
"@sentry/nextjs": "^10.68.0",
|
||||||
|
|||||||
Generated
-182
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user