Skip to content

Commit

Permalink
chore: how to publish locally
Browse files Browse the repository at this point in the history
  • Loading branch information
homura committed Dec 18, 2023
1 parent e2346bf commit 0660755
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions devtools/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Devtools

## Mock Publication

If the release workflow is changed, it is important to test the new workflow. This can be done by publishing to a local registry. The following steps will setup a local registry and configure npm to use it.

```sh
npm install -g verdaccio
verdaccio --config ./devtools/verdaccio.yaml --listen=4873
npm config set registry http://localhost:4873
npm config set //localhost:4873/:_authToken fake
```

To test the release workflow on GitHub, the following step can be added to the workflow file.

```yaml
# TODO remove me when ready
- name: Release to Verdaccio
run: |
npm install -g verdaccio
npm config set registry http://localhost:4873
npm config set //localhost:4873/:_authToken fake
nohup verdaccio --config ./devtools/verdaccio.yaml --listen=4873 >/dev/null 2>&1 &
```

0 comments on commit 0660755

Please sign in to comment.