| name | release-amp-themes |
| description | Use when preparing, committing, pushing, or publishing a new amp-themes npm release, especially after UI, theme, README screenshot, bundled dependency, or package file changes. |
Release amp-themes
Overview
Release amp-themes only after proving the npm version is new, package contents are intentional, GitHub has the release commit and tag, GitHub Release notes describe the change, and Pi can load the package.
This repo can include README screenshots, but screenshots must stay repo-only unless explicitly intended for npm.
Release flow
- Inspect state:
git status --short
npm view amp-themes version
npm view amp-themes versions --json
- Pick a new version that is not already on npm. Update:
package.json
CHANGELOG.md
- Verify package behavior and contents:
npm run release:check
Read the npm pack --dry-run output. Confirm these are present:
README.md
CHANGELOG.md
LICENSE
extensions/
themes/
skills/
Confirm the extensions/ listing includes the self-authored tool-display files (amp-tool-display.ts, amp-tool-render.ts, amp-tools-*.ts).
Confirm repo-only screenshots are absent unless intentionally packaged.
- Commit all intended release changes:
git add AGENTS.md CHANGELOG.md README.md extensions package.json themes skills screenshots
git commit -m "chore: release <version>"
Use a feature/fix subject instead if the commit is not only release prep.
- Push GitHub before publishing:
git push origin HEAD
- Create and push the release tag before publishing:
git tag v<version>
git push origin v<version>
- Publish only after the commit and tag are on GitHub:
npm publish
- Create GitHub Release notes from the changelog entry:
gh release create v<version> \
--title "amp-themes <version>" \
--notes-file /tmp/amp-themes-<version>-release-notes.md
Include user-visible changes and packaging notes, especially whether screenshots are repo-only.
- Verify npm and GitHub release state:
npm view amp-themes version
npm view amp-themes dist-tags --json
gh release view v<version>
Common mistakes
| Mistake | Prevention |
|---|
| Publishing an existing version | Check npm view amp-themes versions --json before release. |
| Accidentally packaging screenshots | Read npm pack --dry-run; keep screenshots out of package.json.files. |
| Publishing before GitHub push | Push the release commit and tag before npm publish. |
| Missing release notes | Create a GitHub Release from the changelog entry. |
| Trusting a partial check | Run full npm run release:check. |
| Missing tool-display files in the tarball | Confirm dry-run lists the extensions/ tool-display files (amp-tool-display.ts, amp-tool-render.ts, amp-tools-*.ts). |
If publish fails
- Version already exists: bump patch, update changelog, rerun
npm run release:check, amend or make a new commit, push commit and tag, publish.
- Tag already exists: verify it points at the published commit with
git rev-parse v<version> before reusing it.
- GitHub Release already exists: update it with
gh release edit v<version> --notes-file ....
- Auth failure: run
npm whoami; do not change package contents until auth is fixed.
- Package contents wrong: fix
package.json.files or ignore rules, rerun npm run pack:check, then rerun full release check.