Skip to content

CI: upload the npm pack tarball and sha256 sums as an artifact - #34

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

What

After the existing build, tests and build:check:dist, the test job now runs npm pack and uploads, with actions/upload-artifact (SHA-pinned, v7.0.2, like the other actions here):

  • datalyr-web-<version>.tgz
  • SHA256SUMS.txt: sha256 of the tarball, dist/datalyr.pixels.min.js and dist/datalyr.replay.min.js (also printed in the log)

Artifact name: datalyr-web-<version>-<commit sha>, kept 7 days. Runs on pushes to main and on pull requests (the existing triggers). Nothing else in the build changes; no secrets, no publish step, permissions stay contents: read. package.json has no prepack/prepare script, so npm pack packs the dist/ built earlier in the same job.

Why

Step W2 of the 1.10.0 publish needs the tarball built off the laptop. Today CI builds but saves nothing.

Merge order

This PR first, then release/1.10.0 (#32) rebased or merged on top, so the push to main from #32 produces the datalyr-web-1.10.0-<sha> artifact. This PR's own artifact carries the branch version (1.9.15) and is only a proof.

versionedHeader

Not decided here: it is a switch in the main repo's tracking build (infra/tracking/build-options.json), not in this package's build, so the npm tarball is the same either way. ON changes the first comment line of the served dl.js to name @datalyr/web v1.10.0, OFF keeps the old Datalyr Analytics v2.0 banner; the publish package recommends ON (it shows which version a site runs) and says OFF is also fine.

🤖 Generated with Claude Code


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

…tifact

Co-Authored-By: Claude Opus <noreply@anthropic.com>
@czypnt
czypnt marked this pull request as ready for review November 25, 2026 03:59
@czypnt
czypnt merged commit b8cdf32 into main Nov 25, 2026
2 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