Quellcode durchsuchen

chore: Attempt to fix macOS publish workflow 2

Michael Bromley vor 1 Jahr
Ursprung
Commit
fae7084f6d
1 geänderte Dateien mit 7 neuen und 14 gelöschten Zeilen
  1. 7 14
      .github/workflows/publish_and_install.yml

+ 7 - 14
.github/workflows/publish_and_install.yml

@@ -28,13 +28,6 @@ jobs:
       uses: actions/setup-node@v3
       with:
         node-version: ${{ matrix.node-version }}
-    - name: MacOS host fix
-      if: matrix.os == 'macos-latest'
-      run: |
-        # Make "localhost" DNS entry available; see https://github.com/actions/runner-images/issues/6383
-        # sudo networksetup -setdnsservers Ethernet 9.9.9.9
-        echo -e "$(ipconfig getifaddr en0) $(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts 
-        echo `sudo lsof -PiTCP -sTCP:LISTEN`
     - name: Install Verdaccio
       run: |
         npm install -g verdaccio
@@ -43,13 +36,13 @@ jobs:
         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 &
-        wait-on http://localhost:4873
+        wait-on http://127.0.0.1:4873
         TOKEN_RES=$(curl -XPUT \
           -H "Content-type: application/json" \
           -d '{ "name": "test", "password": "test" }' \
-          'http://localhost:4873/-/user/org.couchdb.user:test')
+          'http://127.0.0.1:4873/-/user/org.couchdb.user:test')
         TOKEN=$(echo "$TOKEN_RES" | jq -r '.token')
-        npm set //localhost:4873/:_authToken $TOKEN
+        npm set //127.0.0.1:4873/:_authToken $TOKEN
     - name: Windows dependencies
       if: matrix.os == 'windows-latest'
       run: npm install -g @angular/cli
@@ -61,15 +54,15 @@ jobs:
     - name: Publish to Verdaccio
       run: |
         nohup verdaccio --config $HOME/.config/verdaccio/config.yaml &
-        wait-on http://localhost:4873
-        lerna publish prepatch --preid ci --no-push --no-git-tag-version --no-commit-hooks --force-publish "*" --yes --dist-tag ci --registry http://localhost:4873
+        wait-on http://127.0.0.1:4873
+        lerna publish prepatch --preid ci --no-push --no-git-tag-version --no-commit-hooks --force-publish "*" --yes --dist-tag ci --registry http://127.0.0.1:4873
     - name: Install via @vendure/create
       run: |
         mkdir -p $HOME/install
         cd $HOME/install
         nohup verdaccio --config $HOME/.config/verdaccio/config.yaml &
-        wait-on http://localhost:4873
-        npm set registry=http://localhost:4873
+        wait-on http://127.0.0.1:4873
+        npm set registry=http://127.0.0.1:4873
         npm dist-tag ls @vendure/create
         npx @vendure/create@ci test-app --ci --use-npm --log-level info
     - name: Server smoke tests