-
Notifications
You must be signed in to change notification settings - Fork 0
Releasing
Publishing to npm is automated when you publish a GitHub release.
Classic and automation npm tokens were revoked in December 2025. CI publishing requires trusted publishing (OIDC).
On npm → alfred-open-in-cursor → Settings → Publishing access → Trusted Publishers, add:
- Provider: GitHub Actions
-
Repository:
nlivingstone/alfred-open-in-cursor -
Workflow filename:
release.yml
The release workflow (.github/workflows/release.yml) uses Node.js 24 (npm ≥ 11.5.1) and OIDC — no npm token secret is needed.
Remove any NPM_TOKEN secret from GitHub repository settings. A leftover token can override OIDC and cause EOTP or ENEEDAUTH failures.
-
Install the GitHub CLI and authenticate with
gh auth login -
From
mainwith a clean working tree, run:./scripts/release.sh patch # or ./scripts/release.sh minor ./scripts/release.sh major # or npm run release:github -- patch
This will:
- Bump
package.json,package-lock.json,info.plist, andCHANGELOG.md - Create the release commit and tag (for example
v1.1.2) - Push to GitHub
- Run
gh release create v1.1.2 --generate-notes
When the GitHub release is published, the Publish to npm workflow runs tests and publishes that tag to npm.
The release tag must match package.json (for example tag v1.1.2 → version 1.1.2).
To bump the version locally without creating a GitHub release:
npm run release:patch
npm run release:minor
npm run release:majorThese run standard-version only. They do not push tags or publish to npm.