Skip to content

ci: publish to npm from a tag push with provenance and attestation - #31

Merged
mindsocket merged 1 commit into
mainfrom
claude/project-thread-ufyt1m
Nov 10, 2026
Merged

mindsocket merged 1 commit into
mainfrom
claude/project-thread-ufyt1m

Conversation

@mindsocket

Copy link
Copy Markdown
Owner

Requested by Rog · project thread

What

Pushing a v<major>.<minor>.<patch> tag (the /release skill's step 2) runs a new Release workflow:

  1. Reruns the full Test workflow (test.yml is now also workflow_call).
  2. Checks the tag matches packages/map-views/package.json.
  3. Builds and packs from packages/map-views (never the private workspace root), attests the tarball.
  4. Publishes that tarball with npm publish --provenance through npm trusted publishing (OIDC, no token).
  5. Creates a GitHub release with generated notes and the tarball attached.

The /release skill and AGENTS.md now describe watching the workflow instead of running npm publish locally.

Setup needed before the first tagged release

  • npmjs.com → structured-context-map-views → Settings → Trusted publishing → GitHub Actions: owner mindsocket, repo structured-context-map-views, workflow release.yml, environment npm.
  • Optional, after one successful run: "Require two-factor authentication and disallow tokens".
  • Optional: tag ruleset for v*, required reviewers on the npm environment.

Not verified

Can't run before it's on main and trusted publishing is configured; YAML parses and lint passes.


Generated by Claude Code

The Release workflow runs on a v<version> tag: it reruns the test
workflow, checks the tag matches packages/map-views/package.json,
publishes the packed library through npm trusted publishing with
provenance, attests the tarball and attaches it to a GitHub release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Xphpf9ejzNMsN83ehiZnu
@mindsocket mindsocket self-assigned this Nov 9, 2026
@mindsocket
mindsocket merged commit 35f625e into main Nov 10, 2026
1 check passed
@mindsocket
mindsocket deleted the claude/project-thread-ufyt1m branch November 10, 2026 00:04
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.

2 participants