Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
pkgbase = create-awesome-node-app
pkgdesc = Composable scaffolding CLI — one command, any Node.js stack
pkgver = 0.15.0
pkgver = 0.16.1
pkgrel = 1
url = https://create-awesome-node-app.vercel.app
arch = any
license = MIT
depends = nodejs>=24
depends = npm
source = https://registry.npmjs.org/create-awesome-node-app/-/create-awesome-node-app-0.15.0.tgz
sha256sums = 6c59a7d3d41127ceadcc93a9505d9ae716f6984be43d7774f0f244c1e968d99c
source = https://registry.npmjs.org/create-awesome-node-app/-/create-awesome-node-app-0.16.1.tgz
sha256sums = ce693c9fd8a97dddf19c05c299ad1428ba802e7103582c8856e219c9e4d9216d

pkgname = create-awesome-node-app
67 changes: 66 additions & 1 deletion .github/workflows/validate-pkgbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,51 @@ permissions:
contents: read

jobs:
lint:
name: PKGBUILD lint (shellcheck + namcap)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Install shellcheck and namcap dependencies
run: |
set -euo pipefail
sudo apt-get update -qq
sudo apt-get install -y -qq shellcheck python3-pip
pip install --quiet namcap || echo "namcap pip install optional"

- name: ShellCheck PKGBUILD
run: |
set -euo pipefail
echo "Running shellcheck on PKGBUILD"
# PKGBUILD is bash but uses makepkg variables; ignore SC2034 (unused) and SC2148 (missing shebang)
shellcheck --severity=warning --shell=bash \
--exclude=SC2034,SC2148,SC2154,SC2164 \
PKGBUILD || {
echo "::warning::shellcheck found warnings in PKGBUILD"
}
# Also check .SRCINFO is not shell but ensure it exists
test -f .SRCINFO || { echo "::error::.SRCINFO missing"; exit 1; }

- name: Version drift check (npm)
run: |
set -euo pipefail
PKGVER=$(grep -E '^pkgver=' PKGBUILD | cut -d= -f2)
NPM_VER=$(curl -sfL https://registry.npmjs.org/create-awesome-node-app/latest | jq -r '.version')
echo "PKGBUILD pkgver: $PKGVER"
echo "npm latest: $NPM_VER"
if [ "$PKGVER" != "$NPM_VER" ]; then
echo "::warning::PKGBUILD pkgver ($PKGVER) differs from npm latest ($NPM_VER)"
else
echo "Version sync OK: $PKGVER"
fi

- name: Validate PKGBUILD syntax (bash -n)
run: |
set -euo pipefail
bash -n PKGBUILD
echo "bash -n OK"

srcinfo:
name: .SRCINFO sync
runs-on: ubuntu-latest
Expand All @@ -23,9 +68,29 @@ jobs:
-w /work \
archlinux:latest \
bash -euo pipefail -c '
pacman -Sy --noconfirm --needed pacman-contrib base-devel
pacman -Sy --noconfirm --needed pacman-contrib base-devel >/dev/null 2>&1
useradd -m builder
chown -R builder:builder /work
runuser -u builder -- makepkg --printsrcinfo > /tmp/.SRCINFO.generated
diff -u .SRCINFO /tmp/.SRCINFO.generated
'

namcap:
name: namcap PKGBUILD
runs-on: ubuntu-latest
# namcap requires Arch environment; run in docker but allow warnings
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Run namcap (informational)
continue-on-error: true
run: |
set -euo pipefail
docker run --rm \
-v "$PWD:/work:rw" \
-w /work \
archlinux:latest \
bash -euo pipefail -c '
pacman -Sy --noconfirm --needed namcap pacman-contrib base-devel >/dev/null 2>&1
namcap PKGBUILD || true
namcap .SRCINFO || true
'
4 changes: 2 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Maintainer: Ulises Jeremias <ulisescf.24@gmail.com>
pkgname=create-awesome-node-app
pkgver=0.15.0
pkgver=0.16.1
pkgrel=1
pkgdesc="Composable scaffolding CLI — one command, any Node.js stack"
arch=('any')
url="https://create-awesome-node-app.vercel.app"
license=('MIT')
depends=('nodejs>=24' 'npm')
source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
sha256sums=('6c59a7d3d41127ceadcc93a9505d9ae716f6984be43d7774f0f244c1e968d99c')
sha256sums=('ce693c9fd8a97dddf19c05c299ad1428ba802e7103582c8856e219c9e4d9216d')

package() {
npm install -g --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz"
Expand Down