diff --git a/.github/ISSUE_49_COMMENT.md b/.github/ISSUE_49_COMMENT.md new file mode 100644 index 00000000..5a963436 --- /dev/null +++ b/.github/ISSUE_49_COMMENT.md @@ -0,0 +1,15 @@ +Suggested comment for [Issue #49](https://github.com/sickn33/antigravity-awesome-skills/issues/49). Paste this on the issue: + +--- + +The 404 happens because the package wasn’t published to npm yet. We’ve addressed it in two ways: + +1. **Publish to npm** – We’re set up to publish so `npx antigravity-awesome-skills` will work after the first release. You can also trigger a manual publish via the “Publish to npm” workflow (Actions tab) if you have `NPM_TOKEN` configured. + +2. **Fallback** – Until then (or if you hit a 404 for any reason), use: + ```bash + npx github:sickn33/antigravity-awesome-skills + ``` + The README, GETTING_STARTED, and FAQ now mention this fallback. + +Thanks for reporting. diff --git a/.github/MAINTENANCE.md b/.github/MAINTENANCE.md index 6a915fbf..29e971a4 100644 --- a/.github/MAINTENANCE.md +++ b/.github/MAINTENANCE.md @@ -173,12 +173,22 @@ When cutting a new version (e.g., V4): 1. **Run Full Validation**: `python3 scripts/validate_skills.py --strict` 2. **Update Changelog**: Add the new release section to `CHANGELOG.md`. -3. **Bump Version**: Update header in `README.md`. +3. **Bump Version**: + - Update `package.json` → `"version": "X.Y.Z"` (source of truth for npm). + - Update version header in `README.md` if it displays the number. + - One-liner: `npm version patch` (or `minor`/`major`) — bumps `package.json` and creates a git tag; then amend if you need to tag after release. 4. **Tag Release**: ```bash git tag -a v4.0.0 -m "V4 Enterprise Edition" git push origin v4.0.0 ``` +5. **Publish to npm** (so `npx antigravity-awesome-skills` works): + - **Option A (manual):** From repo root, with npm logged in and 2FA/token set up: + ```bash + npm publish + ``` + You cannot republish the same version; always bump `package.json` before publishing. + - **Option B (CI):** On GitHub, create a **Release** (tag e.g. `v4.6.1`). The workflow [Publish to npm](.github/workflows/publish-npm.yml) runs on **Release published** and runs `npm publish` if the repo secret `NPM_TOKEN` is set (npm → Access Tokens → Granular token with Publish, then add as repo secret `NPM_TOKEN`). ### 📋 Changelog Entry Template diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml new file mode 100644 index 00000000..af753e6a --- /dev/null +++ b/.github/workflows/publish-npm.yml @@ -0,0 +1,28 @@ +# Publish antigravity-awesome-skills to npm on release. +# Requires NPM_TOKEN secret (npm → Access Tokens → Granular token with Publish). +# Before creating a Release: bump package.json "version" (npm forbids republishing the same version). +# Release tag (e.g. v4.6.1) should match package.json version. + +name: Publish to npm + +on: + release: + types: [published] + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "20" + registry-url: "https://registry.npmjs.org" + + - name: Publish + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/README.md b/README.md index 54ec8715..92097c43 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,8 @@ npx antigravity-awesome-skills --path ./my-skills Run `npx antigravity-awesome-skills --help` for all options. If the directory already exists, the installer runs `git pull` to update. +> **If you see a 404 error:** the package may not be published to npm yet. Use: `npx github:sickn33/antigravity-awesome-skills` + ### Option B: git clone ```bash diff --git a/docs/FAQ.md b/docs/FAQ.md index 77c32b40..8168e428 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -62,7 +62,11 @@ _Always check the Risk label and review the code._ ### Where should I install the skills? -The universal path that works with most tools is `.agent/skills/`: +The universal path that works with most tools is `.agent/skills/`. + +**Using npx:** `npx antigravity-awesome-skills` (or `npx github:sickn33/antigravity-awesome-skills` if you get a 404). + +**Using git clone:** ```bash git clone https://github.com/sickn33/antigravity-awesome-skills.git .agent/skills diff --git a/docs/GETTING_STARTED.md b/docs/GETTING_STARTED.md index 4fe283e2..1c0151a8 100644 --- a/docs/GETTING_STARTED.md +++ b/docs/GETTING_STARTED.md @@ -30,6 +30,8 @@ npx antigravity-awesome-skills This clones to `~/.agent/skills` by default. Use `--cursor`, `--claude`, or `--gemini` to install for a specific tool, or `--path