Template
ci: npm release archives from source + two zips (Refs #35) #38
Reference in New Issue
Block a user
Delete Branch "fix/npm-release-from-source"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
npm-auto-release.ymlnow builds two zips (mirroring Joomla): full-repo${REPO}-${VERSION}.zipand source${REPO}-${VERSION}-source.zipviagit archive, both attached to the release.pre-release.ymlcleanly skips npm/MCP repos before anyphpcall.Refs #35.
Review status
Two review passes run before this PR (code-reviewer + silent-failure-hunter); all Critical/High findings fixed in follow-up commits:
inputs(not the inaccessiblesecretscontext in composite actions).set -euo pipefail, non-empty artifact assertions, andgh release uploadno longer error-suppressed.Merge order
#33 (resolver) → #34 (source/ migration) → #35 (release) — #35 references the composite action introduced by #33.
Authored-by: Moko Consulting
Mirror the Joomla two-artifact model for npm/MCP releases: instead of a single tar.gz, attach two ZIPs to the GitHub Release. npm-auto-release.yml: - Replace the tar.gz "Package source" step with "Package release artifacts" (id: package) producing: * ${REPO_NAME}-${VERSION}.zip — full repo, tracked files only via `git archive --format=zip HEAD` (excludes .git/node_modules/dist). * ${REPO_NAME}-${VERSION}-source.zip — resolved source subtree via `git archive --format=zip "HEAD:${SRC%/}"` (tree-ish path, no trailing slash). Emits repo_zip / source_zip step outputs. - Move packaging to run AFTER "Create git tag" and immediately before "GitHub Release" so both zips reflect the final released tree (the old position ran before the version-badge release commit). Keeps its `if: steps.version.outputs.skip != 'true'` guard. - GitHub Release step now uploads BOTH zips: passed as trailing args to `gh release create` and via `gh release upload ... --clobber`. - Update the header comment to describe the full-repo + source zip artifacts instead of the compiled dist/. - Build / "Verify dist output" steps left as-is (dist still verified in CI). Authored-by: Moko Consulting