Skip to content

ci: release workflow to attach tarballs on v* tags#7

Merged
antuuanyf merged 3 commits into
mainfrom
ci/release-workflow
May 30, 2026
Merged

ci: release workflow to attach tarballs on v* tags#7
antuuanyf merged 3 commits into
mainfrom
ci/release-workflow

Conversation

@antuuanyf

Copy link
Copy Markdown
Owner

Automatiza la generación y publicación de los tarballs al crear un tag v*, para no tener que correr pack:all y subir los assets a mano.

Workflow (.github/workflows/release.yml)

  • Trigger: push de un tag v* (p. ej. git tag v0.1.0 && git push origin v0.1.0).
  • Pasos: npm cinpm run pack:all (build core + angular + npm pack ambos) → softprops/action-gh-release@v2 crea/actualiza el Release del tag, adjunta artifacts/*.tgz y genera notas automáticas.
  • permissions: contents: write para poder crear el release y subir assets.
  • Mismo entorno que el CI existente: Node 22 + npm ci.

Cómo se usa

git tag v0.1.0
git push origin v0.1.0

El workflow deja el Release con prettier-modals-0.1.0.tgz y prettier-modals-angular-0.1.0.tgz listos, y las URLs coinciden con las documentadas en el README.

🤖 Generated with Claude Code

antuuanyf and others added 3 commits May 30, 2026 18:08
pack:all builds both packages and runs npm pack into artifacts/, so the
exact publishable .tgz files can be produced in one command before the
library is on npm. Document consuming those tarballs (local path or via
a GitHub Release) in the README, and note why a github: install doesn't
work for this monorepo. artifacts/ is git-ignored.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Cover the full release path: how to create the release and upload both
tarballs (gh release create), the vanilla install from the asset URL, and
the Angular install from both URLs together. Add a note that the wrapper
and core must be installed in the same command, or npm tries to resolve
the prettier-modals peer from the (empty) registry and fails.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
On pushing a v* tag, the workflow installs deps, runs pack:all to build
both packages and produce the .tgz files, then creates/updates the
matching GitHub Release with the tarballs attached and auto-generated
notes. Mirrors the CI's Node 22 + npm ci setup.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@antuuanyf antuuanyf merged commit bc6c5cf into main May 30, 2026
1 check passed
@antuuanyf antuuanyf deleted the ci/release-workflow branch May 30, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant