Skip to content

Add publishing workflow with OIDC provenance - #20

Merged
0x80 merged 5 commits into
mainfrom
thijs/0217-add-publishing-workflow
Feb 17, 2026
Merged

Add publishing workflow with OIDC provenance#20
0x80 merged 5 commits into
mainfrom
thijs/0217-add-publishing-workflow

Conversation

@0x80

@0x80 0x80 commented Feb 17, 2026

Copy link
Copy Markdown
Owner

Add a manual dispatch workflow for publishing to npm using OIDC-based provenance. The workflow runs checks first, builds the package, bumps the version, publishes with --provenance, and creates a GitHub release. Supports prerelease versions and dry runs.

Also bumps Node.js to 24 in both checks and publish workflows.

Add a manual dispatch workflow for publishing to npm using OIDC-based
provenance. The workflow runs checks first, builds the package, bumps
the version, publishes with provenance, and creates a GitHub release.

Also bump Node.js to 24 in both checks and publish workflows.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Comment thread .github/workflows/publish.yml

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a complete publishing workflow for automated npm package releases with OIDC-based provenance attestation, and updates the Node.js version to 24 across both workflows.

Changes:

  • Adds a new manual-dispatch publish workflow with version bumping, npm publishing, and GitHub release creation
  • Supports multiple version bump types (patch, minor, major, and prerelease variants) with dry-run capability
  • Updates Node.js version from 22 to 24 in the checks workflow

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/publish.yml New workflow for publishing to npm with OIDC provenance, version management, and release automation
.github/workflows/checks.yml Updates Node.js version to 24 for consistency with publish workflow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

echo "- **Dry run:** ${{ inputs.dry_run }}" >> $GITHUB_STEP_SUMMARY

- name: Publish to npm
if: ${{ inputs.dry_run == false }}

Copilot AI Feb 17, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The npm publish step is missing authentication configuration. When using actions/setup-node@v4 with registry-url, you need to set the NODE_AUTH_TOKEN environment variable in the publish step. Without this, npm publish will fail with an authentication error.

Add an env section to the publish step with NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} (assuming you have an NPM_TOKEN secret configured in your repository settings).

Suggested change
if: ${{ inputs.dry_run == false }}
if: ${{ inputs.dry_run == false }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/publish.yml
@0x80
0x80 merged commit 2ad0ad8 into main Feb 17, 2026
5 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.

2 participants