Skip to content

Commit

Permalink
docs(core): use nx release in create install package recipe (#27567)
Browse files Browse the repository at this point in the history
Use `nx release` in the create install package recipe
  • Loading branch information
isaacplmann authored Aug 21, 2024
1 parent 73f12a3 commit b6dd925
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/shared/recipes/plugins/create-install-package.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,12 @@ npx nx local-registry
Note, after terminating the terminal window where the `nx local-registry` command is running (e.g. using `CTRL+c` or `CMD+c`) the registry will be stopped, previously installed packages will be cleaned up and the npm/yarn/pnpm registries will be restored to their original state, pointing to the real NPM servers again.
{% /callout %}

Next, you can **publish** your packages to your new local registry. All of the generated packages have a `nx-release-publish` target that is configured to publish whatever is in your `build` output folder, so you can simply run:
Next, you can **publish** your packages to your new local registry. All of the generated packages can use `nx release` to publish whatever is in your `build` output folder, so you can simply run:

```shell
npx nx run-many --targets build
npx nx run-many --targets nx-release-publish
npx nx release version 1.0.0
npx nx release publish --tag latest
```

Once the packages are published, you should be able to test the behavior of your "create package" as follows:
Expand Down

0 comments on commit b6dd925

Please sign in to comment.