-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 & | ||
``` |