Skip to content

Commit c47fa1a

Browse files
committed
chore: update rules
1 parent 0a1611c commit c47fa1a

2 files changed

Lines changed: 9 additions & 45 deletions

File tree

.cursor/rules/project.mdc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ src/
5555
- **Versioning**: Changesets
5656
- **Node**: >=20, **Package manager**: pnpm 10
5757

58+
## CI/CD & Release
59+
60+
- **CI**: Runs lint, format check, typecheck, build, and tests on push to `main` and PRs.
61+
- **Release**: On push to `main`, `changesets/action` either creates a version PR or publishes to npm.
62+
- **Snapshot**: Comment `/snapshot` on a PR to publish a `0.0.0-snapshot.<sha>` release.
63+
- **npm trusted publishing**: Uses OIDC provenance via the `release` GitHub environment. The workflow requires `environment: release` for npm to accept the OIDC token.
64+
- **RELEASE_TOKEN secret**: A fine-grained GitHub PAT stored as a repo secret, used by `changesets/action` for Git pushes and PR creation. The default `GITHUB_TOKEN` is insufficient inside the `release` environment. The PAT needs `contents: write` and `pull-requests: write` scopes on the repo. Remember to rotate it before expiry.
65+
- **Repo settings required**: Under Settings > Actions > General > Workflow permissions, "Allow GitHub Actions to create and approve pull requests" must be enabled.
66+
5867
## Code Conventions
5968

6069
- TypeScript strict mode, `consistent-type-imports` enforced

.cursor/rules/submit-changes.mdc

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)