Skip to content

Commit

Permalink
chore: Publish and install fix 7
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Nov 17, 2023
1 parent f662942 commit b40aa88
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish_and_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ jobs:
run: |
npm install -g verdaccio
npm install -g wait-on
nohup verdaccio &
tmp_registry_log=`mktemp`
nohup verdaccio &>$tmp_registry_log &
wait-on http://localhost:4873
TOKEN_RES=$(curl -XPUT \
-H "Content-type: application/json" \
-d '{ "name": "test", "password": "test" }' \
'http://localhost:4873/-/user/org.couchdb.user:test')
TOKEN=$(echo "$TOKEN_RES" | jq -r '.token')
npm set registry "http://localhost:4873"
npm set //localhost:4873/:_authToken $TOKEN
npm set registry "http://0.0.0.0:4873"
npm set //0.0.0.0:4873/:_authToken $TOKEN
- name: Windows dependencies
if: matrix.os == 'windows-latest'
run: npm install -g @angular/cli
Expand All @@ -52,7 +53,7 @@ jobs:
CI: true
- name: Publish to Verdaccio
run: |
yarn lerna publish prepatch --preid ci --no-push --no-git-tag-version --no-commit-hooks --force-publish "*" --yes --dist-tag ci --registry http://0.0.0.0:4873
yarn lerna publish prepatch --preid ci --no-push --no-git-tag-version --no-commit-hooks --force-publish "*" --yes --dist-tag ci --registry http://localhost:4873
- name: Install via @vendure/create
run: |
mkdir -p $HOME/install
Expand Down

0 comments on commit b40aa88

Please sign in to comment.