Skip to content

ci: add release workflow via workflow_dispatch#30

Open
rochdev wants to merge 2 commits into
mainfrom
rochdev/ci-release-workflow
Open

ci: add release workflow via workflow_dispatch#30
rochdev wants to merge 2 commits into
mainfrom
rochdev/ci-release-workflow

Conversation

@rochdev
Copy link
Copy Markdown
Member

@rochdev rochdev commented May 8, 2026

Summary

  • Adds .github/workflows/release.yml: a workflow_dispatch workflow with a patch/minor/major input that bumps the version, publishes to npm with provenance (no token required), pushes the version commit and tag via dd-octo-sts, and creates a GitHub release with auto-generated notes
  • Adds .github/chainguard/self.release.sts.yaml: octo-sts policy scoped to workflow_dispatch events from release.yml on main, granting contents: write

Setup required

  • Configure dc-polyfill on npmjs.com to trust GitHub Actions from DataDog/dc-polyfill (Provenance/trusted publishing)
  • Create an npm environment in the GitHub repo settings (used as a gate on the release job)

Test plan

  • Verify npm trusted publishing is configured for the package
  • Trigger the workflow with patch on a test run
  • Confirm version commit and tag are pushed to main
  • Confirm package is published to npm
  • Confirm GitHub release is created with generated notes

🤖 Generated with Claude Code

rochdev and others added 2 commits May 8, 2026 14:58
Uses dd-octo-sts for push permissions and npm provenance for publishing.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@rochdev rochdev marked this pull request as ready for review May 8, 2026 19:22
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