# Release Process

## Steps

1. **Bump version** - Update version in:
   - `nis2.php` - `Version:` and `NIS2_VERSION`
   - `readme.txt` - `Stable tag:`
   - `changelog.txt` - version header
   - `README.md` - `**Version:**`
   - `AGENTS.md` - `Plugin version`

2. **Git commit** - Add, commit, and push:
   ```bash
   git add -A
   git commit -m "Release vVERSION"
   git push
   ```

3. **SVN release** - Using `bin/svn-publish.sh`:
   ```bash
   ./bin/svn-publish.sh sync --username USER --password PASS
   ./bin/svn-publish.sh commit "Release vVERSION - description" --username USER --password PASS
   ./bin/svn-publish.sh tag VERSION --username USER --password PASS
   ```

## Example (release 1.6.2)

```bash
# 1. Bump version in files
find . -name '*.php' -o -name '*.txt' -o -name '*.md' | xargs sed -i '' 's/1.6.1/1.6.2/g'

# 2. Git
git add -A
git commit -m "Release v1.6.2"
git push

# 3. SVN
./bin/svn-publish.sh sync --username USER --password PASS
./bin/svn-publish.sh commit "Release v1.6.2 - improvements to X" --username USER --password PASS
./bin/svn-publish.sh tag 1.6.2 --username USER --password PASS
```

## Verification

After release:
- Check WordPress.org plugin page shows correct version
- Verify download link works
- Confirm changelog displays properly