Skip to content

Publish npm releases with GitHub Actions OIDC - #3

Merged
yourcasualdev merged 1 commit into
mainfrom
release/npm-trusted-publishing
Jul 28, 2026
Merged

Publish npm releases with GitHub Actions OIDC#3
yourcasualdev merged 1 commit into
mainfrom
release/npm-trusted-publishing

Conversation

@yourcasualdev

Copy link
Copy Markdown
Owner

Summary

  • add a publish.yml workflow triggered by published GitHub Releases
  • use npm Trusted Publishing through GitHub OIDC instead of a long-lived npm token
  • verify the release tag exactly matches package.json before publishing
  • run the full test, typecheck, and build suite before npm publish
  • prepare version 0.1.2 and its changelog entry

Validation

  • bun run check
  • workflow YAML parse
  • npm publish --dry-run --json

One-time npm setup

Configure the npm package trusted publisher for:

  • GitHub owner: yourcasualdev
  • Repository: opencode-cliproxyapi
  • Workflow: publish.yml
  • Allowed action: npm publish

After this PR is merged, publishing GitHub Release v0.1.2 will publish the package.

@yourcasualdev
yourcasualdev merged commit 023d95c into main Jul 28, 2026
1 check passed
@yourcasualdev
yourcasualdev deleted the release/npm-trusted-publishing branch July 28, 2026 19:53
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