ci: release workflow to attach tarballs on v* tags#7
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automatiza la generación y publicación de los tarballs al crear un tag
v*, para no tener que correrpack:ally subir los assets a mano.Workflow (
.github/workflows/release.yml)v*(p. ej.git tag v0.1.0 && git push origin v0.1.0).npm ci→npm run pack:all(build core + angular +npm packambos) →softprops/action-gh-release@v2crea/actualiza el Release del tag, adjuntaartifacts/*.tgzy genera notas automáticas.permissions: contents: writepara poder crear el release y subir assets.npm ci.Cómo se usa
El workflow deja el Release con
prettier-modals-0.1.0.tgzyprettier-modals-angular-0.1.0.tgzlistos, y las URLs coinciden con las documentadas en el README.🤖 Generated with Claude Code