Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/privy-peer-dep.md

This file was deleted.

20 changes: 9 additions & 11 deletions .claude/skills/publish/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ Publishes `@aave` packages to npm using changesets.

## Checklist

**You MUST use TodoWrite to create a todo for EACH step below. Mark each complete only after verification.**
**You MUST use TaskCreate to create a task for EACH step below. Mark each complete only after verification.**

### Pre-flight

- [ ] Verify on `main` branch and up-to-date: `git checkout main && git pull`
- [ ] Verify working directory is clean: `git status` shows no uncommitted changes
- [ ] Run `nvm use` to ensure correct Node.js version
- [ ] Run `corepack enable` to ensure correct pnpm version
- [ ] Run `pnpm install` to update dependencies
- [ ] Run `pnpm build` to build all packages
Expand All @@ -25,17 +24,16 @@ Publishes `@aave` packages to npm using changesets.
- [ ] Run `pnpm changeset status` to check for pending changesets (if none exist, nothing to publish — STOP)
- [ ] Run `pnpm changeset version` to bump versions
- [ ] Review the version output and confirm changes look correct
- [ ] Stage and commit: `git add . && git commit -m "chore: bumps up versions"`
- [ ] Stage and commit changed files: `git add <changed files> && git commit -m "chore: bumps up versions"`

### Publish

- [ ] Verify npm authentication: run `npm whoami`
- If it fails: ask user to run `npm login` then re-verify
- [ ] Ask user for npm OTP code (from authenticator app)
- [ ] Run `NPM_CONFIG_OTP=<otp> pnpm changeset publish` with the provided OTP
- If OTP expires mid-publish: ask for new OTP and retry failed packages manually
- If publish fails partially: check npm for which packages published, may need manual recovery
- [ ] Ask user to run `pnpm changeset publish` from their interactive terminal (no OTP required)
- [ ] Wait for user to confirm publish is done
- [ ] Run `git push --follow-tags`
- If direct push to main is rejected (branch protection): create a `chore/bump-versions` branch, push it, and open a PR

## Stop Conditions

Expand All @@ -44,10 +42,10 @@ Publishes `@aave` packages to npm using changesets.
| Not on main branch | `git checkout main && git pull` first |
| Uncommitted changes | Stash or commit first |
| `pnpm changeset status` shows no changesets | Nothing to publish — inform user |
| `npm whoami` fails | User must run `npm login` |
| `npm whoami` fails | Ask user to run `npm login` |

## Common Mistakes

1. **Skipping `nvm use`** — Wrong Node version causes build failures
2. **Forgetting `--follow-tags`** — Git tags not pushed, npm versions unlinked from git history
3. **Committing after `git push --follow-tags`** — Version bump commit must be pushed before tags, not after
1. **Forgetting `--follow-tags`** — Git tags not pushed, npm versions unlinked from git history
2. **Committing after `git push --follow-tags`** — Version bump commit must be pushed before tags, not after
3. **Assuming direct push to main works** — Branch protection requires a PR; tags still push fine
6 changes: 6 additions & 0 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @aave/client

## 0.11.0

### Minor Changes

- 4a60cfa: Move `@privy-io/server-auth` from dependencies to peerDependencies

## 0.10.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aave/client",
"version": "0.10.0",
"version": "0.11.0",
"description": "The official JavaScript client for the Aave API",
"repository": {
"directory": "packages/client",
Expand Down
7 changes: 7 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @aave/react

## 0.9.1

### Patch Changes

- Updated dependencies [4a60cfa]
- @aave/client@0.11.0

## 0.9.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aave/react",
"version": "0.9.0",
"version": "0.9.1",
"description": "The official React bindings for the Aave Protocol",
"repository": {
"directory": "packages/react",
Expand Down
Loading