Skip to content

CI: save the packed tarball and its sha256 as an artifact (no publish) - #9

Merged
czypnt merged 1 commit into
mainfrom
ci/pack-artifact
Nov 25, 2026
Merged

czypnt merged 1 commit into
mainfrom
ci/pack-artifact

Conversation

@czypnt

@czypnt czypnt commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Same approach as datalyr/web#34, so the 1.4.0 tarball the co-founder publishes is built by CI from a clean checkout, not on a laptop.

  • After npm ci, npm run build and npm test, the Node 24 leg runs npm pack into pack-out/, writes SHA256SUMS.txt (also printed in the log) and uploads both as datalyr-api-<version>-<sha>, kept 7 days.
  • Runs on pushes to main and on same-repo PRs; skipped for fork PRs (the optional hardening from the web#34 review). Once per run, so the matrix does not upload two artifacts with one name.
  • No secrets, no publish step, permissions: contents: read unchanged. actions/upload-artifact pinned by full SHA (v7.0.2), same as web#34.
  • prepublishOnly is npm run build; publishing a .tgz skips it, which loses nothing because CI built the same tsup output from a clean tree and ran the tests. There is no prepack, prepare or .npmignore.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

After build and tests on the Node 24 leg, npm pack the package, write
SHA256SUMS.txt, and upload both as datalyr-api-<version>-<sha> (7 days).
Skipped for fork PRs. No secrets, no publish step, permissions unchanged.

Co-Authored-By: Claude Opus <noreply@anthropic.com>
@czypnt
czypnt merged commit 1937931 into main Nov 25, 2026
3 checks passed
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