diff --git a/docs-developer/deploying.md b/docs-developer/deploying.md index 543b9408d2..f62e7e1d83 100644 --- a/docs-developer/deploying.md +++ b/docs-developer/deploying.md @@ -128,8 +128,8 @@ yarn publish-profiler-cli 1. Run `yarn build-profiler-cli` to produce `profiler-cli/dist/profiler-cli.js` (a single self-contained bundle with no runtime dependencies). -2. Run `npm publish profiler-cli/`, picking `--tag alpha` when the version - contains `-` (e.g. `0.1.0-alpha.5`) and `--tag latest` otherwise. +2. Run `npm publish profiler-cli/`, picking `--tag next` when the version + contains `-` (e.g. `0.1.0-next.1`) and `--tag latest` otherwise. 3. Trigger the `prepublishOnly` hook in `profiler-cli/package.json`, which runs [`scripts/verify-profiler-cli-build.mjs`](../scripts/verify-profiler-cli-build.mjs) to confirm the bundle exists and embeds the current `package.json` version — diff --git a/profiler-cli/CONTRIBUTING.md b/profiler-cli/CONTRIBUTING.md index f8f82b54ad..4d127dcf9f 100644 --- a/profiler-cli/CONTRIBUTING.md +++ b/profiler-cli/CONTRIBUTING.md @@ -29,14 +29,7 @@ This means: - Developers working on the CLI use the root package.json dependencies - The `package.json` in this directory is for npm publishing only, not for development -To publish: - -```bash -# From repository root -yarn build-profiler-cli -cd profiler-cli -npm publish -``` +To publish, see [`docs-developer/deploying.md`](../docs-developer/deploying.md#publishing-profiler-cli-to-npm). ## Development Workflow diff --git a/profiler-cli/README.md b/profiler-cli/README.md index d2916d04a2..315f47e9ee 100644 --- a/profiler-cli/README.md +++ b/profiler-cli/README.md @@ -2,8 +2,6 @@ A command-line interface for querying Firefox Profiler profiles with persistent daemon sessions. -> **Alpha release** — this package is in early development. Commands and options may change between versions. - ## Installation ```bash diff --git a/profiler-cli/package.json b/profiler-cli/package.json index 1c62db31c4..5e3dd2a5dd 100644 --- a/profiler-cli/package.json +++ b/profiler-cli/package.json @@ -1,6 +1,6 @@ { "name": "@firefox-devtools/profiler-cli", - "version": "0.1.0-alpha.4", + "version": "0.1.0", "description": "Command-line interface for querying Firefox Profiler profiles with persistent daemon sessions", "scripts": { "prepublishOnly": "node ../scripts/verify-profiler-cli-build.mjs" diff --git a/scripts/publish-profiler-cli.mjs b/scripts/publish-profiler-cli.mjs index b832776aa3..d37171f35d 100644 --- a/scripts/publish-profiler-cli.mjs +++ b/scripts/publish-profiler-cli.mjs @@ -14,11 +14,9 @@ const userSpecifiedTag = forwardedArgs.some( (a) => a === '--tag' || a.startsWith('--tag=') ); const isPrerelease = version.includes('-'); -// TODO: switch 'alpha' to 'next' once a stable release exists and we want the -// conventional pre-release channel. const tagArgs = userSpecifiedTag ? [] - : ['--tag', isPrerelease ? 'alpha' : 'latest']; + : ['--tag', isPrerelease ? 'next' : 'latest']; function run(cmd, args) { const result = spawnSync(cmd, args, { cwd: repoRoot, stdio: 'inherit' });