@@ -388,10 +388,16 @@ jobs:
388388 name : Publish
389389 runs-on : ubuntu-latest
390390 needs :
391- - test-macOS-windows-binding
392- - test-linux-binding
391+ - build
392+ # - test-macOS-windows-binding
393+ # - test-linux-binding
393394 steps :
394395 - uses : actions/checkout@v4
396+ - uses : webfactory/ssh-agent@v0.9.0
397+ with :
398+ ssh-private-key : |
399+ ${{ secrets.HTTP_HANDLER_ACCESS_TOKEN }}
400+ ${{ secrets.HTTP_REWRITER_ACCESS_TOKEN }}
395401 - uses : pnpm/action-setup@v4
396402 with :
397403 version : latest
@@ -432,20 +438,23 @@ jobs:
432438 run : ls -R ./npm
433439 shell : bash
434440 - name : Publish
435- if : contains(github.ref, 'main')
436- run : |
437- npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
438- npm config set scope "@platformatic"
439- # npm config set provenance true
440- if git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+";
441- then
442- npm publish --access public --dry-run
443- elif git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+-\.+";
444- then
445- npm publish --tag next --access public --dry-run
446- else
447- echo "Not a release, skipping publish"
448- fi
441+ run : npm publish
449442 env :
450443 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
451444 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
445+ # - name: Publish
446+ # if: contains(github.ref, 'main')
447+ # run: |
448+ # npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
449+ # if git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+";
450+ # then
451+ # npm publish
452+ # elif git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+-\.+";
453+ # then
454+ # npm publish
455+ # else
456+ # echo "Not a release, skipping publish"
457+ # fi
458+ # env:
459+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
460+ # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments