From 5416c34be656e7d55887f9c11cd2d483ed50c42d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 30 Sep 2026 23:18:26 +0000 Subject: [PATCH 1/2] fix(ci): publish to npmjs in its own job so GitHub Packages still ships In the 0.1.10 release the npmjs publish step failed (E404 on PUT, the NPM_TOKEN no longer has publish rights). Because that step lived in the release-please job, publish-github-packages (needs: release-please) was skipped too, so no registry got 0.1.10. Move the npm publish into a separate publish-npm job that, like the GitHub Packages job, only needs release-please. An npm auth problem now fails just that job. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011pv5NUFsXGzyv4F9TcK7Rz --- .github/workflows/release-please.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index ffd866d..cf39e98 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -22,23 +22,28 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} - # --- Publish to npm only when this run created a release --- - # Done here (not in a separate release-triggered workflow) because events - # created by GITHUB_TOKEN do not trigger other workflows. + # --- Publish to npmjs.org --- + # Its own job so an npm auth problem (expired NPM_TOKEN) cannot skip the + # GitHub Packages publish below. Done here (not in a separate + # release-triggered workflow) because events created by GITHUB_TOKEN do + # not trigger other workflows. + publish-npm: + needs: release-please + if: ${{ needs.release-please.outputs.release_created == 'true' }} + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write # npm provenance + steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - if: ${{ steps.release.outputs.release_created }} - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 - if: ${{ steps.release.outputs.release_created }} with: node-version: '24' registry-url: https://registry.npmjs.org cache: npm - - if: ${{ steps.release.outputs.release_created }} - run: npm ci - - if: ${{ steps.release.outputs.release_created }} - run: npm run build + - run: npm ci + - run: npm run build - name: Publish to npm (skip if version already exists) - if: ${{ steps.release.outputs.release_created }} run: | VER=$(node -p "require('./package.json').version") if npm view "lombokcss@$VER" version >/dev/null 2>&1; then From eb7ae68a9d2019947a0060f82958ef1eef11fbc4 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 30 Sep 2026 23:19:01 +0000 Subject: [PATCH 2/2] fix: drop static.yml and CLAUDE.md re-added by a merge from an old clone Merge d89c64a ("Merge branch 'main' of https://github.com/codinglombok/LombokCSS") joined main with the pre-cleanup history (44f0ef5) and brought back two files that had been removed: - .github/workflows/static.yml, the second Pages deployment that uploads the repo root (no index.html) and can take the site down with a 404 (removed in #42) - CLAUDE.md, internal Claude Code memory that must stay local (untracked in #41; still listed in .gitignore) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011pv5NUFsXGzyv4F9TcK7Rz --- .github/workflows/static.yml | 43 ---------------------------- CLAUDE.md | 55 ------------------------------------ 2 files changed, 98 deletions(-) delete mode 100644 .github/workflows/static.yml delete mode 100644 CLAUDE.md diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml deleted file mode 100644 index 66e4306..0000000 --- a/.github/workflows/static.yml +++ /dev/null @@ -1,43 +0,0 @@ -# Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - # Single deploy job since we're just deploying - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v7 - - name: Setup Pages - uses: actions/configure-pages@v6 - - name: Upload artifact - uses: actions/upload-pages-artifact@v5 - with: - # Upload entire repository - path: '.' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v5 diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 6ddb4c5..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,55 +0,0 @@ -# CLAUDE.md โ€” memori proyek LombokCSS - -Berkas ini adalah memori lintas sesi untuk Claude Code. Baca dulu sebelum bekerja, -perbarui di akhir setiap sesi (bagian "Status & lanjutan"). - -## Konteks - -- Repo `codinglombok/LombokCSS`, katalog ekosistem **01.01**, tingkat **L0**, status ๐ŸŸข LIVE, versi **0.1.9**, lisensi **MIT**. -- Acuan normatif: **MASTERPLAN_UTAMA v3.4** (2026-09-29) โ€” Prinsip #11 "Universal tanpa klaim aplikasi", **ADR-019**, 9 dimensi D1โ€“D9, 12 dokumen standar per repo. -- Dokumen standar repo: `docs/*_LombokCSS_v0.1.9.md` (masterplan, architecture, changelog, map, structure_repo, full_summary_project, guide_how_to_use, how_to_dist, development_ide, API, Lang, SPEC) โ€” **LOKAL SAJA**, tidak di-commit. - -## Aturan wajib (v3.4) - -- **Markdown (keputusan pemilik):** hanya `*.md` di root repo (README, CHANGELOG, CONTRIBUTING, dst.) dan `.github/` yang boleh online. Semua `*.md` di subfolder (mis. `docs/masterplan_*.md`) di-`.gitignore` dan disimpan lokal saja. Jangan pernah `git add -f` berkas itu. (Kasus sama pernah terjadi di LombokCompress.) - -- DILARANG di README/manifest/dokumen: "Part of Lombok", "Library #โ€ฆ", "component of โ€ฆ", "for LombokRAG/PDF/Agentic". Yang boleh: "Part of Lombok Ecosystem", "Dipakai oleh X" (bagian terpisah). -- Audit cepat: `grep -n -i -E "part of Lombok[A-Z]|library #|component of|for Lombok(RAG|PDF|Agentic)" README.md package.json composer.json bower.json lombokcss.gemspec` -- README wajib punya "Why this library? (Mengapa library ini?)" dan "Standards implemented". -- Checklist D1โ€“D9 di `docs/masterplan_โ€ฆ` minimal 6/9 โœ… untuk rilis publik (saat ini 6/9). - -## Perintah - -```bash -npm ci && npm run build # dist/ dari src/ -npm test # anggaran ukuran (CSS โ‰ค15 KB, JS โ‰ค4 KB gzip) + SSR guard -npx playwright test tests/behavior.spec.js # 44 test perilaku -npm run lint # Prettier -cp dist/lombok.js docs/assets/lombok.js # sinkron aset situs bila JS berubah -``` - -- `CHANGELOG.md` ditulis release-please โ€” jangan diedit tangan; catatan masterplan masuk ke `docs/changelog_LombokCSS_v.md` (lokal). -- Perubahan perilaku JS: perbarui `docs/SPEC_โ€ฆ` + test di `tests/behavior.spec.js`. - -## Status & lanjutan - -Sesi 2026-09-30 (branch `claude/affectionate-sagan-o4rxmx`) โ€” penyelarasan v3.4: - -- [x] 12 dokumen standar + checklist universalitas (6/9) -- [x] README: Why this library, Standards implemented, ekosistem = peer -- [x] Deskripsi manifest npm/Composer/Bower/gem/NuGet/Maven + "Part of Lombok Ecosystem" -- [x] `lombok.js`: sortir tabel via `Intl.Collator` dari `lang` terdekat (+2 test) - -Sesi 2026-09-30 lanjutan โ€” PR #36 di-merge; lalu: - -- [x] C-03: folder `package/` dihapus -- [x] `docs/*.md` dicabut dari git + `.gitignore` (`*.md`, kecuali root dan `.github/`) - -Belum selesai (lanjutkan di sesi berikut): - -- [ ] Pemilik: ubah deskripsi GitHub About (teks ada di `docs/masterplan_โ€ฆ` ยง6) -- [ ] Pemilik: perbaiki model Copilot untuk check `github-advanced-security` (gagal: "model not supported") -- [ ] C-02: email kontak nyata di `SECURITY.md` (masih placeholder) โ€” butuh keputusan pemilik -- [ ] C-04: SBOM + provenance npm di workflow rilis (target 0.2.0) -- [ ] C-06: rename `docs/*_v0.1.9.md` saat versi minor naik -- [ ] D8: tooltip & validasi form opsional; D5 โ†’ โœ… setelah C-02 + C-04