Skip to content

Commit

Permalink
chore: Attempt to get publish & install workflow working again
Browse files Browse the repository at this point in the history
The `npm-auth-to-token` dependency is probably breaking. It has no
readme or repo link: https://www.npmjs.com/package/npm-auth-to-token
and has not been updated for 6 years.

The issue is discussed here: ethereumjs/ethereumjs-monorepo#1537
and I am attempting the fix as seen here: https://github.com/ethereumjs/ethereumjs-monorepo/pull/1579/files#diff-02c8f04118065b423b5b599fe96dc405107c1a84c7840d9ec3b04627021aef69
  • Loading branch information
michaelbromley committed Nov 17, 2023
1 parent dfc09a8 commit 1b2cc04
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish_and_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ jobs:
npm install -g verdaccio
npm install -g verdaccio-auth-memory
npm install -g verdaccio-memory
npm install -g [email protected]
tmp_registry_log=`mktemp`
mkdir -p $HOME/.config/verdaccio
cp -v ./.github/workflows/verdaccio/config.yaml $HOME/.config/verdaccio/config.yaml
nohup verdaccio --config $HOME/.config/verdaccio/config.yaml &>$tmp_registry_log &
npm-auth-to-token -u test -p test -e [email protected] -r http://0.0.0.0:4873
TOKEN=$(curl -XPUT \
-H "Content-type: application/json" \
-d '{ "name": "test", "password": "test" }' \
'http://localhost:4873/-/user/org.couchdb.user:test')
npm set registry "http://localhost:4873"
npm set //localhost:4873/:_authToken $TOKEN
- name: Windows dependencies
if: matrix.os == 'windows-latest'
run: npm install -g @angular/cli
Expand Down

0 comments on commit 1b2cc04

Please sign in to comment.