Skip to content

ci: wire up changesets release/publish workflows for go-web#32

Merged
Dugyu merged 1 commit intomainfrom
chore/setup-changesets-and-publish
Apr 15, 2026
Merged

ci: wire up changesets release/publish workflows for go-web#32
Dugyu merged 1 commit intomainfrom
chore/setup-changesets-and-publish

Conversation

@Dugyu
Copy link
Copy Markdown
Collaborator

@Dugyu Dugyu commented Apr 15, 2026

Summary

This PR adapts the Changesets release/publish workflows copied from a monorepo to fit this repository (single package + example / example-rspress). It also clarifies CI vs release vs publish execution so regular PRs and regular main pushes won’t accidentally trigger publishing.

What changed

  • workflow-test.yml: reworked into a repo-specific dedicated test workflow (pnpm typecheck + build example + build example-rspress) to be reused by other workflows.
  • ci.yml: runs only on PRs and reuses workflow-test.yml (no extra write permissions needed).
  • release-pr.yml: on main pushes, runs changesets/action to create/update the release PR.
  • publish.yml:
    • runs the dedicated tests before any publish attempt
    • keeps detect-version-packages gating so publishing only happens when merging a changeset-release/* PR
    • sets id-token: write + NPM_CONFIG_PROVENANCE to prepare for OIDC/Trusted Publishing (no NODE_AUTH_TOKEN required).
  • ci-setup composite action: adds registry-url and a package-manager-cache toggle so publish can opt into a clean, no-cache install while CI stays cached by default.

Verification

  • Ran locally: pnpm typecheck

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 15, 2026

Deploy Preview for lynx-go-web ready!

Name Link
🔨 Latest commit 6900719
🔍 Latest deploy log https://app.netlify.com/projects/lynx-go-web/deploys/69dfb21ef4c07f00080de99f
😎 Deploy Preview https://deploy-preview-32--lynx-go-web.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Dugyu Dugyu merged commit 5265e51 into main Apr 15, 2026
7 checks passed
@Dugyu Dugyu deleted the chore/setup-changesets-and-publish branch April 15, 2026 15:55
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