Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs-developer/deploying.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 —
Expand Down
9 changes: 1 addition & 8 deletions profiler-cli/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions profiler-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion profiler-cli/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 1 addition & 3 deletions scripts/publish-profiler-cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
Expand Down
Loading